Update of /cvsroot/logicampus/logicampus/src/logicreate/lib
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv17316
Modified Files:
LC_user.php
Log Message:
Fix one more session bug.
Index: LC_user.php
===================================================================
RCS file: /cvsroot/logicampus/logicampus/src/logicreate/lib/LC_user.php,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** LC_user.php 26 Jan 2008 02:24:19 -0000 1.35
--- LC_user.php 26 Jan 2008 21:21:45 -0000 1.36
***************
*** 411,415 ****
if ($this->_sessionKey == "") { return false; }
! if ($this->username == "") { return false; /*print "no username"; exit();*/}
//save userID to the session
$this->commitSessionVars();
--- 411,415 ----
if ($this->_sessionKey == "") { return false; }
! if ($this->username == "") { $this->username == 'anonymous';}
//save userID to the session
$this->commitSessionVars();
***************
*** 440,443 ****
--- 440,444 ----
$updateWorked = $db->getAffectedRows();
if ($updateWorked < 0) {
+ die('update did not work ' .$updateWorked);
$e = ErrorStack::pullError('php');
|