Found some more for dba::is_result().
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
3e701b90ac
commit
7c04a0d232
|
@ -612,7 +612,7 @@ function acl_lookup(&$a, $out_type = 'json') {
|
|||
dbesc($search),
|
||||
implode("','", $known_contacts)
|
||||
);
|
||||
if (is_array($r) && count($r)){
|
||||
if (dba::is_result($r)){
|
||||
foreach($r as $row) {
|
||||
// nickname..
|
||||
$up = parse_url($row['author-link']);
|
||||
|
|
|
@ -2612,7 +2612,7 @@
|
|||
intval(api_user())
|
||||
);
|
||||
|
||||
if(is_array($r)) {
|
||||
if(dba::is_result($r)) {
|
||||
|
||||
if($type === 'xml') {
|
||||
header("Content-type: application/xml");
|
||||
|
|
Loading…
Reference in New Issue
Block a user