]> git.mxchange.org Git - friendica.git/commitdiff
PHP5 does not support native type-hints, except `array` + used dbm::is_result()
authorRoland Haeder <roland@mxchange.org>
Sat, 25 Mar 2017 12:37:15 +0000 (13:37 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 25 Mar 2017 12:38:11 +0000 (13:38 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
include/dfrn.php

index 877b529badba4a752379f69c9da081c2ebecba39..9192e94303472063130915d70b9524ab2d3c24c4 100644 (file)
@@ -216,13 +216,10 @@ class dfrn {
                        dbesc($sort)
                );
 
-               if (!dbm::is_result($r)) {
-                       /// @TODO Some logging?
-                       killme();
-               }
-
-               // Will check further below if this actually returned results.
-               // We will provide an empty feed if that is the case.
+               /*
+                * Will check further below if this actually returned results.
+                * We will provide an empty feed if that is the case.
+                */
 
                $items = $r;
 
@@ -243,10 +240,10 @@ class dfrn {
 
                $root = self::add_header($doc, $owner, $author, $alternatelink, true);
 
-               // This hook can't work anymore
+               /// @TODO This hook can't work anymore
                //      call_hooks('atom_feed', $atom);
 
-               if (!count($items) OR $onlyheader) {
+               if (!dbm::is_result($items) OR $onlyheader) {
                        $atom = trim($doc->saveXML());
 
                        call_hooks('atom_feed_end', $atom);