[Linpha-cvs] SF.net SVN: linpha: [4562] trunk/linpha2
Status: Inactive
Brought to you by:
bzrudi
From: <fan...@us...> - 2006-08-28 15:09:49
|
Revision: 4562 Author: fangehrn Date: 2006-08-28 08:09:39 -0700 (Mon, 28 Aug 2006) ViewCVS: http://svn.sourceforge.net/linpha/?rev=4562&view=rev Log Message: ----------- 2006-08-28 flo * fixed php notice Modified Paths: -------------- trunk/linpha2/ChangeLog trunk/linpha2/lib/classes/linpha.sql.class.php Modified: trunk/linpha2/ChangeLog =================================================================== --- trunk/linpha2/ChangeLog 2006-08-27 22:16:12 UTC (rev 4561) +++ trunk/linpha2/ChangeLog 2006-08-28 15:09:39 UTC (rev 4562) @@ -1,3 +1,6 @@ +2006-08-28 flo + * fixed php notice + 2006-08-27 flo * fixed image rotate with gdlib * implemented user settings Modified: trunk/linpha2/lib/classes/linpha.sql.class.php =================================================================== --- trunk/linpha2/lib/classes/linpha.sql.class.php 2006-08-27 22:16:12 UTC (rev 4561) +++ trunk/linpha2/lib/classes/linpha.sql.class.php 2006-08-28 15:09:39 UTC (rev 4562) @@ -343,12 +343,15 @@ * this has also to be here because the session isn't started yet in reloadConfig() * but also has to be in reloadConfig() if it will be called during the script */ - $query = $GLOBALS['linpha']->db->Execute("SELECT option_name, option_value " . - "FROM ".PREFIX."config WHERE user_id = '".$_SESSION['user_id']."'"); - - while($data = $query->FetchRow(ADODB_FETCH_NUM)) + if(isset($_SESSION['user_id'])) { - $GLOBALS['linpha']->sql->config->value[$data['0']] = $data['1']; + $query = $GLOBALS['linpha']->db->Execute("SELECT option_name, option_value " . + "FROM ".PREFIX."config WHERE user_id = '".$_SESSION['user_id']."'"); + + while($data = $query->FetchRow(ADODB_FETCH_NUM)) + { + $GLOBALS['linpha']->sql->config->value[$data['0']] = $data['1']; + } } } // end function startSession This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |