aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-17 17:51:56 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-17 17:51:56 +0000
commit4b85d98cde6b6854cd9f7adc48be37412b51bfcd (patch)
tree7ab54cffef492c90c294fefa2e2d83086ace4b72 /engine/lib
parent4b50ab5ef56c657f41a7039c1967bd2777293c92 (diff)
downloadelgg-4b85d98cde6b6854cd9f7adc48be37412b51bfcd.tar.gz
elgg-4b85d98cde6b6854cd9f7adc48be37412b51bfcd.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Fixed sql error on clear annotaitons git-svn-id: https://code.elgg.org/elgg/trunk@239 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/annotations.php2
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']}))";