]> git.mxchange.org Git - friendica.git/commitdiff
And a second SQL error fixed
authorMichael <heluecht@pirati.ca>
Sun, 3 Jun 2018 09:21:48 +0000 (09:21 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 3 Jun 2018 09:21:48 +0000 (09:21 +0000)
include/api.php

index 2892dfe4ee4a31546c66bf51292f98c6439d51f0..4dce85ed50e345bd6a0a93634205ee2700229297 100644 (file)
@@ -1632,7 +1632,7 @@ function api_search($type)
        $r = dba::p(
                "SELECT ".item_fieldlists()."
                FROM `item` ".item_joins(api_user())."
-               WHERE ".item_condition()." AND (`item`.`uid` = 0 OR (`item`.`uid` = ? AND NOT `item`.`global`))
+               WHERE ".item_condition()." AND (`item`.`uid` = 0 OR (`item`.`uid` = ? AND NOT `item`.`public`))
                AND `item`.`body` LIKE CONCAT('%',?,'%')
                $sql_extra
                AND `item`.`id`>?