From: <var...@us...> - 2012-12-17 14:49:12
|
Revision: 8667 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8667&view=rev Author: vargenau Date: 2012-12-17 14:49:06 +0000 (Mon, 17 Dec 2012) Log Message: ----------- Add is_object check Modified Paths: -------------- trunk/lib/WikiDB/backend/PearDB.php Modified: trunk/lib/WikiDB/backend/PearDB.php =================================================================== --- trunk/lib/WikiDB/backend/PearDB.php 2012-12-17 13:32:16 UTC (rev 8666) +++ trunk/lib/WikiDB/backend/PearDB.php 2012-12-17 14:49:06 UTC (rev 8667) @@ -1286,9 +1286,14 @@ function next() { $backend = &$this->_backend; - if (!$this->_result) + if (!$this->_result) { return false; + } + if (!is_object($this->_result)) { + return false; + } + $record = $this->_result->fetchRow(DB_FETCHMODE_ASSOC); if (!$record) { $this->free(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |