aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/annotations.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/annotations.php')
-rw-r--r--engine/lib/annotations.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php
index dd647444a..47903616a 100644
--- a/engine/lib/annotations.php
+++ b/engine/lib/annotations.php
@@ -829,6 +829,8 @@
*/
function clear_annotations_by_owner($owner_guid)
{
+ global $CONFIG;
+
$owner_guid = (int)$owner_guid;
$annotations = get_data("SELECT id from {$CONFIG->dbprefix}annotations WHERE owner_guid=$owner_guid");
@@ -836,7 +838,7 @@
foreach ($annotations as $id)
{
- if (delete_annotation($id)) // Is this the best way?
+ if (delete_annotation($id->id)) // Is this the best way?
$deleted++;
}