From: Roland Haeder Date: Sun, 18 Sep 2016 21:27:54 +0000 (+0200) Subject: Opps, wrong brace and removed invert of dbm::is_result() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=636164e9ef6537992524c7e6e7c12a67e9de4d26;p=friendica.git Opps, wrong brace and removed invert of dbm::is_result() Signed-off-by: Roland Haeder --- diff --git a/include/api.php b/include/api.php index d6f6dec7d9..521354edc1 100644 --- a/include/api.php +++ b/include/api.php @@ -2747,7 +2747,8 @@ intval(api_user()) ); - if(dbm::is_result($r)) { + if(!dbm::is_result($r)) + return; $ids = array(); foreach($r as $rr) @@ -3165,7 +3166,7 @@ intval(api_user()) ); - if ((! count($r)) || ($r[0]['network'] !== NETWORK_DFRN)) + if ((! dbm::is_result($r)) || ($r[0]['network'] !== NETWORK_DFRN)) throw new BadRequestException("Unknown contact"); $cid = $r[0]['id']; @@ -3878,7 +3879,6 @@ } api_register_func('api/friendica/direct_messages_search', 'api_friendica_direct_messages_search', true); - /* To.Do: [pagename] => api/1.1/statuses/lookup.json