]> git.mxchange.org Git - friendica.git/commitdiff
Remove useless intval() in api_search
authorPierre Rudloff <contact@rudloff.pro>
Mon, 18 Dec 2017 13:36:06 +0000 (14:36 +0100)
committerPierre Rudloff <contact@rudloff.pro>
Mon, 18 Dec 2017 13:36:06 +0000 (14:36 +0100)
include/api.php

index b247a738d0187dd00d8ccb01dfaa48bd52d02567..39a1f0318554c087bec1befd6cbbe6c76bfbb551 100644 (file)
@@ -1530,9 +1530,9 @@ function api_search($type)
                $sql_extra
                AND `item`.`id`>?
                ORDER BY `item`.`id` DESC LIMIT ".intval($start)." ,".intval($count)." ",
-               intval(api_user()),
+               api_user(),
                $_REQUEST['q'],
-               intval($since_id)
+               $since_id
        );
 
        $data['status'] = api_format_items(dba::inArray($r), api_get_user(get_app()));