1
1
Fork 0

And a second SQL error fixed

This commit is contained in:
Michael 2018-06-03 09:21:48 +00:00
parent d76fb6d0b9
commit ea498ff283

View file

@ -1632,7 +1632,7 @@ function api_search($type)
$r = dba::p( $r = dba::p(
"SELECT ".item_fieldlists()." "SELECT ".item_fieldlists()."
FROM `item` ".item_joins(api_user())." 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('%',?,'%') AND `item`.`body` LIKE CONCAT('%',?,'%')
$sql_extra $sql_extra
AND `item`.`id`>? AND `item`.`id`>?