Browse Source

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

Signed-off-by: Roland Haeder <roland@mxchange.org>
pull/3010/head
Roland Häder 6 years ago
parent
commit
636164e9ef
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78
  1. 6
      include/api.php

6
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

Loading…
Cancel
Save