Signed-off-by: Roland Haeder <roland@mxchange.org>
intval(api_user())
);
- if(dbm::is_result($r)) {
+ if(!dbm::is_result($r))
+ return;
$ids = array();
foreach($r as $rr)
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'];
}
api_register_func('api/friendica/direct_messages_search', 'api_friendica_direct_messages_search', true);
-
/*
To.Do:
[pagename] => api/1.1/statuses/lookup.json