From e76ee2e9ceebe5580220cf0ed065a501005ec544 Mon Sep 17 00:00:00 2001 From: rurban Date: Tue, 8 Jun 2010 08:22:22 +0000 Subject: [PATCH] relations might be empty now git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@7492 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/WikiDB.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/WikiDB.php b/lib/WikiDB.php index e00df3605..678f11d2f 100644 --- a/lib/WikiDB.php +++ b/lib/WikiDB.php @@ -1,6 +1,4 @@ -getWikiPageLinks(); // linkto => relation $attributes = array(); foreach ($links as $link) { - if ($link['linkto'] === "" and $link['relation']) { + if ($link['linkto'] === "" and !empty($link['relation'])) { $attributes[$link['relation']] = $this->getAttribute($link['relation']); } } @@ -1818,7 +1816,7 @@ class WikiDB_PageIterator $this->_iter = $iter; // a WikiDB_backend_iterator $this->_wikidb = &$wikidb; $this->_options = $options; - } + } function count () { return $this->_iter->count(); -- 2.45.0