]> git.mxchange.org Git - friendica.git/commitdiff
add missing query backticks
authorFabrixxm <fabrix.xm@gmail.com>
Mon, 8 Feb 2016 13:35:41 +0000 (14:35 +0100)
committerFabrixxm <fabrix.xm@gmail.com>
Mon, 8 Feb 2016 13:35:41 +0000 (14:35 +0100)
include/api.php

index 16481201e3b2551d2b4be5268e8a6262a8501997..d205451e5e6e0f13215bc87f56e52a15cdca2bb5 100644 (file)
                $nm->setSeen($note);
                if ($note['otype']=='item') {
                        // would be really better with an ItemsManager and $im->getByID() :-P
-                       $r = q("SELECT * FROM item WHERE id=%d AND uid=%d",
+                       $r = q("SELECT * FROM `item` WHERE `id`=%d AND `uid`=%d",
                                intval($note['iid']),
                                intval(local_user())
                        );