From: Roland Haeder Date: Sat, 25 Mar 2017 12:37:15 +0000 (+0100) Subject: PHP5 does not support native type-hints, except `array` + used dbm::is_result() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6d5826e1880d2b4c21ea3044c6931d59027e8576;p=friendica.git PHP5 does not support native type-hints, except `array` + used dbm::is_result() Signed-off-by: Roland Haeder --- diff --git a/include/dfrn.php b/include/dfrn.php index 877b529bad..9192e94303 100644 --- a/include/dfrn.php +++ b/include/dfrn.php @@ -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);