From: <ru...@us...> - 2010-06-08 08:22:28
|
Revision: 7492 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7492&view=rev Author: rurban Date: 2010-06-08 08:22:22 +0000 (Tue, 08 Jun 2010) Log Message: ----------- relations might be empty now Modified Paths: -------------- trunk/lib/WikiDB.php Modified: trunk/lib/WikiDB.php =================================================================== --- trunk/lib/WikiDB.php 2010-06-08 08:19:42 UTC (rev 7491) +++ trunk/lib/WikiDB.php 2010-06-08 08:22:22 UTC (rev 7492) @@ -1,6 +1,4 @@ -<?php //-*-php-*- -// rcs_id('$Id$'); - +<?php //rcs_id('$Id$'); require_once('lib/PageType.php'); /** @@ -1004,7 +1002,7 @@ $links = $formatted->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 @@ $this->_iter = $iter; // a WikiDB_backend_iterator $this->_wikidb = &$wikidb; $this->_options = $options; - } + } function count () { return $this->_iter->count(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |