[Cs-webapplibs-commits] SF.net SVN: cs-webapplibs:[156] trunk/0.3/cs_webdblogger.class.php
Status: Beta
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-11-09 17:25:47
|
Revision: 156 http://cs-webapplibs.svn.sourceforge.net/cs-webapplibs/?rev=156&view=rev Author: crazedsanity Date: 2009-11-09 17:25:37 +0000 (Mon, 09 Nov 2009) Log Message: ----------- Fix possible PHP warning (if session doesn't exist). Modified Paths: -------------- trunk/0.3/cs_webdblogger.class.php Modified: trunk/0.3/cs_webdblogger.class.php =================================================================== --- trunk/0.3/cs_webdblogger.class.php 2009-10-29 03:28:38 UTC (rev 155) +++ trunk/0.3/cs_webdblogger.class.php 2009-11-09 17:25:37 UTC (rev 156) @@ -794,7 +794,7 @@ public function get_uid() { $myUid = $this->defaultUid; //check for a uid in the session. - if(is_array($_SESSION) && isset($_SESSION['uid']) && is_numeric($_SESSION['uid'])) { + if(isset($_SESSION) && is_array($_SESSION) && isset($_SESSION['uid']) && is_numeric($_SESSION['uid'])) { //got an ID in the session. $myUid = $_SESSION['uid']; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |