Opps, wrong brace and removed invert of dbm::is_result()

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-09-18 23:27:54 +02:00
parent c825cc8d0d
commit 636164e9ef
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View file

@ -2747,7 +2747,8 @@
intval(api_user()) intval(api_user())
); );
if(dbm::is_result($r)) { if(!dbm::is_result($r))
return;
$ids = array(); $ids = array();
foreach($r as $rr) foreach($r as $rr)
@ -3165,7 +3166,7 @@
intval(api_user()) 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"); throw new BadRequestException("Unknown contact");
$cid = $r[0]['id']; $cid = $r[0]['id'];
@ -3878,7 +3879,6 @@
} }
api_register_func('api/friendica/direct_messages_search', 'api_friendica_direct_messages_search', true); api_register_func('api/friendica/direct_messages_search', 'api_friendica_direct_messages_search', true);
/* /*
To.Do: To.Do:
[pagename] => api/1.1/statuses/lookup.json [pagename] => api/1.1/statuses/lookup.json