]> git.wh0rd.org - tt-rss.git/blobdiff - classes/article.php
Fixing bugs found by static analysis
[tt-rss.git] / classes / article.php
index 1198eefa95cc3ebd7624c981df33b8ab4fe791e5..e9f86f2984d6a709fe5cf8aeb0c4caebd0018eec 100644 (file)
@@ -215,7 +215,7 @@ class Article extends Handler_Protected {
                $this->dbh->query("UPDATE ttrss_user_entries SET
                        score = '$score' WHERE ref_id IN ($ids) AND owner_uid = " . $_SESSION["uid"]);
 
-               print json_encode(array("id" => $id,
+               print json_encode(array("id" => $ids,
                        "score_pic" => get_score_pic($score)));
        }