diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-06 11:49:45 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-06 11:49:45 +0000 |
commit | dc6fe803e3ef44dc563e14f2bde2c5647b30d8bb (patch) | |
tree | b59a08de7b3cf32a15d01098cc337ae31d7e8c45 | |
parent | 58ee726ca707c67ad3b821c148ca6f82f79ac176 (diff) | |
download | elgg-dc6fe803e3ef44dc563e14f2bde2c5647b30d8bb.tar.gz elgg-dc6fe803e3ef44dc563e14f2bde2c5647b30d8bb.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* User ID detected if not provided
git-svn-id: https://code.elgg.org/elgg/trunk@92 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/annotations.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php index d728dfa9a..097bb24de 100644 --- a/engine/lib/annotations.php +++ b/engine/lib/annotations.php @@ -134,7 +134,10 @@ $object_type = sanitise_string(trim($object_type)); $name = sanitise_string(trim($name)); $value = sanitise_string(trim($value)); + $owner_id = (int)$owner_id; + if ($owner_id=0) $owner_id = $_SESSION['id']; + $limit = (int)$limit; $offset = (int)$offset; @@ -207,7 +210,10 @@ $name = sanitise_string(trim($name)); $value = sanitise_string(trim($value)); $value_type = detect_annotation_valuetype($value, sanitise_string(trim($value_type))); + $owner_id = (int)$owner_id; + if ($owner_id=0) $owner_id = $_SESSION['id']; + $access_id = (int)$access_id; @@ -233,7 +239,10 @@ $name = sanitise_string(trim($name)); $value = sanitise_string(trim($value)); $value_type = detect_annotation_valuetype($value, sanitise_string(trim($value_type))); + $owner_id = (int)$owner_id; + if ($owner_id=0) $owner_id = $_SESSION['id']; + $access_id = (int)$access_id; $access = get_access_list(); |