diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/annotations.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php index 79b2a9168..af28a6aff 100644 --- a/engine/lib/annotations.php +++ b/engine/lib/annotations.php @@ -851,6 +851,9 @@ $annotations = get_data("SELECT id from {$CONFIG->dbprefix}annotations WHERE owner_guid=$owner_guid"); $deleted = 0; + if (!$annotations) + return 0; + foreach ($annotations as $id) { if (delete_annotation($id->id)) // Is this the best way? |