From: <var...@us...> - 2011-04-08 12:54:48
|
Revision: 8025 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8025&view=rev Author: vargenau Date: 2011-04-08 12:54:42 +0000 (Fri, 08 Apr 2011) Log Message: ----------- Avoid warnings Modified Paths: -------------- trunk/lib/WikiDB/backend/PearDB_ffpgsql.php trunk/lib/plugin/Template.php Modified: trunk/lib/WikiDB/backend/PearDB_ffpgsql.php =================================================================== --- trunk/lib/WikiDB/backend/PearDB_ffpgsql.php 2011-04-08 12:53:56 UTC (rev 8024) +++ trunk/lib/WikiDB/backend/PearDB_ffpgsql.php 2011-04-08 12:54:42 UTC (rev 8025) @@ -110,8 +110,12 @@ $this->_get_pageid($pagename, true); // Creates page record } - @$hits = (int)$data['hits']; - unset($data['hits']); + if (isset($data['hits'])) { + $hits = (int)$data['hits']; + unset($data['hits']); + } else { + $hits = 0; + } foreach ($newdata as $key => $val) { if ($key == 'hits') Modified: trunk/lib/plugin/Template.php =================================================================== --- trunk/lib/plugin/Template.php 2011-04-08 12:53:56 UTC (rev 8024) +++ trunk/lib/plugin/Template.php 2011-04-08 12:54:42 UTC (rev 8025) @@ -83,7 +83,7 @@ // TODO: check if page can really be pulled from the args, or if it is just the basepage. function getWikiPageLinks($argstr, $basepage) { $args = $this->getArgs($argstr); - $page = @$args['page']; + $page = isset($args['page'])? $args['page']: ''; if ($page) { // Expand relative page names. $page = new WikiPageName($page, $basepage); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |