From 9d007274adb462063fe59a679b7135b98d97b2b2 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 26 Mar 2011 19:09:28 +0000 Subject: Refs #3238 #3246 anootations needed the same fixes as metadata git-svn-id: http://code.elgg.org/elgg/trunk@8852 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/annotations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/lib/annotations.php') diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php index 0e446c949..1178a079f 100644 --- a/engine/lib/annotations.php +++ b/engine/lib/annotations.php @@ -158,8 +158,8 @@ function update_annotation($annotation_id, $name, $value, $value_type, $owner_gu // If ok then add it $result = update_data("UPDATE {$CONFIG->dbprefix}annotations - set value_id='$value', value_type='$value_type', access_id=$access_id, owner_guid=$owner_guid - where id=$annotation_id and name_id='$name' and $access"); + set name_id='$name', value_id='$value', value_type='$value_type', access_id=$access_id, owner_guid=$owner_guid + where id=$annotation_id and $access"); if ($result !== false) { $obj = elgg_get_annotation_from_id($annotation_id); -- cgit v1.2.3