summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharlie Root <[email protected]>2012-11-05 16:36:47 +0100
committerAndrew Dolgov <[email protected]>2012-11-06 11:58:22 +0400
commit624d649f86b4a73f6a064e45224aa86cf94c9165 (patch)
treed06c6e8e180e8603213142a396e5bb2c7fbb09a9 /include
parenta6e043ffff30ef5cb130bb07583527b1c1dbedb6 (diff)
Labels were cached without taking into account related owner
Diffstat (limited to 'include')
-rw-r--r--include/functions.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/functions.php b/include/functions.php
index 9edd2dd2c..33a83b08a 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -3905,9 +3905,9 @@
}
if (count($rv) > 0)
- label_update_cache($link, $id, $rv);
+ label_update_cache($link, $owner_uid, $id, $rv);
else
- label_update_cache($link, $id, array("no-labels" => 1));
+ label_update_cache($link, $owner_uid, $id, array("no-labels" => 1));
return $rv;
}
@@ -3937,7 +3937,7 @@
return $rv;
}
- function label_update_cache($link, $id, $labels = false, $force = false) {
+ function label_update_cache($link, $owner_uid, $id, $labels = false, $force = false) {
if ($force)
label_clear_cache($link, $id);
@@ -3948,7 +3948,7 @@
$labels = db_escape_string(json_encode($labels));
db_query($link, "UPDATE ttrss_user_entries SET
- label_cache = '$labels' WHERE ref_id = '$id'");
+ label_cache = '$labels' WHERE ref_id = '$id' AND owner_uid = '$owner_uid'");
}