diff options
author | Steve Clay <steve@mrclay.org> | 2013-06-08 22:12:12 -0400 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2013-06-08 22:12:12 -0400 |
commit | 5a1a793f8634e0f7133644e09e9ace60782864d4 (patch) | |
tree | 7fe6331e9866352d605b32c16f0e0ba56651273a /engine/lib/metadata.php | |
parent | 8dbdf2f72c9dccbbd471e805fbd112c6817cdcec (diff) | |
download | elgg-5a1a793f8634e0f7133644e09e9ace60782864d4.tar.gz elgg-5a1a793f8634e0f7133644e09e9ace60782864d4.tar.bz2 |
Fixes #5598: Properly update metadata cache in update_metadata()
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r-- | engine/lib/metadata.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index 43f7d5d6e..046b85124 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -191,19 +191,19 @@ function update_metadata($id, $name, $value, $value_type, $owner_guid, $access_i } // Add the metastring - $value = add_metastring($value); - if (!$value) { + $value_id = add_metastring($value); + if (!$value_id) { return false; } - $name = add_metastring($name); - if (!$name) { + $name_id = add_metastring($name); + if (!$name_id) { return false; } // If ok then add it $query = "UPDATE {$CONFIG->dbprefix}metadata" - . " set name_id='$name', value_id='$value', value_type='$value_type', access_id=$access_id," + . " set name_id='$name_id', value_id='$value_id', value_type='$value_type', access_id=$access_id," . " owner_guid=$owner_guid where id=$id"; $result = update_data($query); |