From 4fa8450d38ccafdfa1117aa8a6fa570ce9fecb09 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 19 Feb 2021 15:50:42 +0300 Subject: [PATCH] setArticleTags: always return tags from the db --- classes/article.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/article.php b/classes/article.php index 4020ea35a..1e90c843e 100755 --- a/classes/article.php +++ b/classes/article.php @@ -248,7 +248,8 @@ class Article extends Handler_Protected { $this->pdo->commit(); - print json_encode(["id" => (int)$id, "tags" => $tags]); + // get latest tags from the database, original $tags is sometimes JSON-encoded as a hash ({}) - ??? + print json_encode(["id" => (int)$id, "tags" => $this->_get_tags($id)]); }