From dc6fe803e3ef44dc563e14f2bde2c5647b30d8bb Mon Sep 17 00:00:00 2001 From: icewing Date: Thu, 6 Mar 2008 11:49:45 +0000 Subject: Marcus Povey * User ID detected if not provided git-svn-id: https://code.elgg.org/elgg/trunk@92 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/annotations.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engine/lib') 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(); -- cgit v1.2.3