]> git.mxchange.org Git - friendica.git/commitdiff
Found some more for dba::is_result().
authorRoland Haeder <roland@mxchange.org>
Sun, 1 May 2016 12:40:47 +0000 (14:40 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 1 May 2016 12:40:47 +0000 (14:40 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
include/acl_selectors.php
include/api.php

index ea0a7aeb0888488bd7fea6d11ed19d56771624f0..93dcdea7423e96472192d31c5342633186201a56 100644 (file)
@@ -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']);
index 3342655ac9be669aee154c76527553b63e02120a..e25c15560e2cdb2c8a9cc731778c60ecf738de3a 100644 (file)
                        intval(api_user())
                );
 
-               if(is_array($r)) {
+               if(dba::is_result($r)) {
 
                        if($type === 'xml') {
                                header("Content-type: application/xml");