From ea498ff283d660c1b5a6222f43a212564fc8755d Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 3 Jun 2018 09:21:48 +0000 Subject: [PATCH] And a second SQL error fixed --- include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/api.php b/include/api.php index 2892dfe4e..4dce85ed5 100644 --- a/include/api.php +++ b/include/api.php @@ -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`>?