aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/annotations.php9
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();