summaryrefslogtreecommitdiff
path: root/classes/article.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-02 15:47:28 +0300
committerAndrew Dolgov <[email protected]>2017-12-02 15:47:53 +0300
commite4befe6bf43318766bcfd5a610b26be0aa1f82f0 (patch)
tree9ac566a6c770263091a48240c2887b8dc6224cbb /classes/article.php
parent7a1872c1e08a4c71e901fccecba64942fd6e68b4 (diff)
fix label cache being double escaped on save
remove some old-style escaping
Diffstat (limited to 'classes/article.php')
-rw-r--r--classes/article.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/article.php b/classes/article.php
index 50367c08d..869e746cf 100644
--- a/classes/article.php
+++ b/classes/article.php
@@ -976,12 +976,12 @@ class Article extends Handler_Protected {
$label_cache = $row["label_cache"];
if ($label_cache) {
- $label_cache = json_decode($label_cache, true);
+ $tmp = json_decode($label_cache, true);
- if ($label_cache["no-labels"] == 1)
+ if (!$tmp || $tmp["no-labels"] == 1)
return $rv;
else
- return $label_cache;
+ return $tmp;
}
}