[Fusionforge-commits] r7735 - branches/Branch_4_8/gforge/common/include

Guillaume Smet gsmet at libremir.placard.fr.eu.org
Sun Jun 7 00:32:31 CEST 2009


Author: gsmet
Date: 2009-06-07 00:32:31 +0200 (Sun, 07 Jun 2009)
New Revision: 7735

Modified:
   branches/Branch_4_8/gforge/common/include/User.class.php
Log:
we have to test the existence of the key with isset before using it

Modified: branches/Branch_4_8/gforge/common/include/User.class.php
===================================================================
--- branches/Branch_4_8/gforge/common/include/User.class.php	2009-06-06 22:30:06 UTC (rev 7734)
+++ branches/Branch_4_8/gforge/common/include/User.class.php	2009-06-06 22:32:31 UTC (rev 7735)
@@ -1399,7 +1399,7 @@
 //
 //	An optimization in session_getdata lets us pre-fetch this in most cases.....
 //
-		if (!$this->data_array['dirname']) {
+		if (!isset($this->data_array['dirname']) || !$this->data_array['dirname']) {
 			$res = db_query_params ('SELECT dirname FROM themes WHERE theme_id=$1',
 						array ($this->getThemeID())) ;
 			$this->theme=db_result($res,0,'dirname');




More information about the Fusionforge-commits mailing list