1
0
Fork 0

Found some more for dba::is_result().

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-05-01 14:40:47 +02:00
parent 3e701b90ac
commit 7c04a0d232
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
2 changed files with 2 additions and 2 deletions

View 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']);

View file

@ -2612,7 +2612,7 @@
intval(api_user())
);
if(is_array($r)) {
if(dba::is_result($r)) {
if($type === 'xml') {
header("Content-type: application/xml");