]> git.mxchange.org Git - friendica.git/commitdiff
Parameter wasn't replaced
authorMichael <heluecht@pirati.ca>
Fri, 11 Aug 2017 08:55:07 +0000 (08:55 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 11 Aug 2017 08:55:07 +0000 (08:55 +0000)
mod/display.php

index cb0d40cfb6324372d0cf469333d050b6e2a20de8..c3938117af71bf7ed93c88bcebe2d2e79a5c3834 100644 (file)
@@ -72,7 +72,7 @@ function display_init(App $a) {
                        if ($r["id"] != $r["parent"]) {
                                $r = dba::fetch_first("SELECT `id`, `author-name`, `author-link`, `author-avatar`, `network`, `body`, `uid`, `owner-link` FROM `item`
                                        WHERE `item`.`visible` AND NOT `item`.`deleted` AND NOT `item`.`moderated`
-                                               AND `id` = %d", $r["parent"]);
+                                               AND `id` = ?", $r["parent"]);
                        }
                        if (($itemuid != local_user()) && local_user()) {
                                // Do we know this contact but we haven't got this item?