[Fusionforge-commits] r7377 - in branches/Branch_4_8/gforge/plugins/wiki/www: lib lib/WikiUser themes/gforge

Olivier Meunier musicoliv at libremir.placard.fr.eu.org
Wed Apr 8 15:33:06 CEST 2009


Author: musicoliv
Date: 2009-04-08 15:33:05 +0200 (Wed, 08 Apr 2009)
New Revision: 7377

Modified:
   branches/Branch_4_8/gforge/plugins/wiki/www/lib/WikiUser/PearDb.php
   branches/Branch_4_8/gforge/plugins/wiki/www/lib/main.php
   branches/Branch_4_8/gforge/plugins/wiki/www/themes/gforge/themeinfo.php
Log:
Php warnings and notices with phpwiki

Modified: branches/Branch_4_8/gforge/plugins/wiki/www/lib/WikiUser/PearDb.php
===================================================================
--- branches/Branch_4_8/gforge/plugins/wiki/www/lib/WikiUser/PearDb.php	2009-04-08 09:25:09 UTC (rev 7376)
+++ branches/Branch_4_8/gforge/plugins/wiki/www/lib/WikiUser/PearDb.php	2009-04-08 13:33:05 UTC (rev 7377)
@@ -51,7 +51,7 @@
                 return $this->_prefs;
             }
         }
-        if ($this->_HomePagehandle) {
+        if (isset($this->_HomePagehandle)) {
             if ($restored_from_page = $this->_prefs->retrieve
                 ($this->_HomePagehandle->get('pref'))) {
                 $updated = $this->_prefs->updatePrefs($restored_from_page);

Modified: branches/Branch_4_8/gforge/plugins/wiki/www/lib/main.php
===================================================================
--- branches/Branch_4_8/gforge/plugins/wiki/www/lib/main.php	2009-04-08 09:25:09 UTC (rev 7376)
+++ branches/Branch_4_8/gforge/plugins/wiki/www/lib/main.php	2009-04-08 13:33:05 UTC (rev 7377)
@@ -1393,7 +1393,7 @@
     $request->finish();
 }
 
-if ($GLOBALS['sys_install_type'] != 'production') {
+if (isset($GLOBALS['sys_install_type']) && $GLOBALS['sys_install_type'] != 'production') {
 	//$x = error_reporting();  // DEBUG: why is it 1 here? should be E_ALL
 	if (defined('E_STRICT') and (E_ALL & E_STRICT)) // strict php5?
 	    error_reporting(E_ALL & ~E_STRICT); 	// exclude E_STRICT

Modified: branches/Branch_4_8/gforge/plugins/wiki/www/themes/gforge/themeinfo.php
===================================================================
--- branches/Branch_4_8/gforge/plugins/wiki/www/themes/gforge/themeinfo.php	2009-04-08 09:25:09 UTC (rev 7376)
+++ branches/Branch_4_8/gforge/plugins/wiki/www/themes/gforge/themeinfo.php	2009-04-08 13:33:05 UTC (rev 7377)
@@ -34,7 +34,7 @@
     function footer() {
         global $HTML;
         
-        $HTML->footer();
+        $HTML->footer(NULL);
         
     }
 }




More information about the Fusionforge-commits mailing list