Opps, wrong brace and removed invert of dbm::is_result()
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
c825cc8d0d
commit
636164e9ef
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue