From: <var...@us...> - 2011-06-01 12:21:32
|
Revision: 8089 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8089&view=rev Author: vargenau Date: 2011-06-01 12:21:26 +0000 (Wed, 01 Jun 2011) Log Message: ----------- This is not an error if include_empty=1 in AllPages Modified Paths: -------------- trunk/lib/WikiDB.php Modified: trunk/lib/WikiDB.php =================================================================== --- trunk/lib/WikiDB.php 2011-06-01 12:17:46 UTC (rev 8088) +++ trunk/lib/WikiDB.php 2011-06-01 12:21:26 UTC (rev 8089) @@ -1826,6 +1826,13 @@ trigger_error("WikiDB_PageIterator->next pagename", E_USER_WARNING); } + if (!$pagename) { + if (isset($next['linkrelation']) + or isset($next['pagedata']['linkrelation'])) { + return false; + } + } + // There's always hits, but we cache only if more // (well not with file, cvs and dba) if (isset($next['pagedata']) and count($next['pagedata']) > 1) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |