diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-26 19:09:28 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-26 19:09:28 +0000 |
commit | 9d007274adb462063fe59a679b7135b98d97b2b2 (patch) | |
tree | 478d4d452cf7564c44f5b2104514467f4e636b80 /engine/lib | |
parent | 33924cdccbead44691dfac2caa3c882810b5003f (diff) | |
download | elgg-9d007274adb462063fe59a679b7135b98d97b2b2.tar.gz elgg-9d007274adb462063fe59a679b7135b98d97b2b2.tar.bz2 |
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
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/annotations.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); |