diff options
Diffstat (limited to 'engine/lib/annotations.php')
-rw-r--r-- | engine/lib/annotations.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php index 5d0ba2215..11e2bfcc2 100644 --- a/engine/lib/annotations.php +++ b/engine/lib/annotations.php @@ -428,7 +428,7 @@ if ($name != "") $where[] = " name='$name'"; - $query = "DELETE from {$CONFIG->dbprefix}annotations where "; + $query = "DELETE from {$CONFIG->dbprefix}annotations where entity_guid=$guid and "; foreach ($where as $w) $query .= " $w and "; $query .= "(access_id in {$access} or (access_id = 0 and owner_guid = {$_SESSION['id']}))"; |