From: <ru...@us...> - 2009-01-07 08:58:10
|
Revision: 6374 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6374&view=rev Author: rurban Date: 2009-01-07 08:58:06 +0000 (Wed, 07 Jan 2009) Log Message: ----------- Be pedantic about suppressed warnings (just for the debugger) Modified Paths: -------------- trunk/lib/WikiDB/backend/PearDB.php Modified: trunk/lib/WikiDB/backend/PearDB.php =================================================================== --- trunk/lib/WikiDB/backend/PearDB.php 2009-01-07 08:56:46 UTC (rev 6373) +++ trunk/lib/WikiDB/backend/PearDB.php 2009-01-07 08:58:06 UTC (rev 6374) @@ -193,7 +193,7 @@ $this->_get_pageid($pagename, true); // Creates page record } - @$hits = (int)$data['hits']; + $hits = !empty($data['hits']) ? (int)$data['hits'] : 0; unset($data['hits']); foreach ($newdata as $key => $val) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |