From 4b85d98cde6b6854cd9f7adc48be37412b51bfcd Mon Sep 17 00:00:00 2001 From: icewing Date: Mon, 17 Mar 2008 17:51:56 +0000 Subject: Marcus Povey * Fixed sql error on clear annotaitons git-svn-id: https://code.elgg.org/elgg/trunk@239 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/annotations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib/annotations.php') 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']}))"; -- cgit v1.2.3