lsmith Sat Jun 28 07:18:50 2003 EDT
Modified files:
/pear/Perm_LiveUser/Auth/Container MDB.php
Log:
silenced error when lastlogin is -1
Index: pear/Perm_LiveUser/Auth/Container/MDB.php
diff -u pear/Perm_LiveUser/Auth/Container/MDB.php:1.6
pear/Perm_LiveUser/Auth/Container/MDB.php:1.7
--- pear/Perm_LiveUser/Auth/Container/MDB.php:1.6 Sat Jun 28 06:12:37 2003
+++ pear/Perm_LiveUser/Auth/Container/MDB.php Sat Jun 28 07:18:50 2003
@@ -48,7 +48,7 @@
* 'allowDuplicateHandles' => 1);
*
* @author Markus Wolff <wolff@xxxxxxx>
- * @version $Id: MDB.php,v 1.6 2003/06/28 10:12:37 lsmith Exp $
+ * @version $Id: MDB.php,v 1.7 2003/06/28 11:18:50 lsmith Exp $
* @package LiveUser
* @category authentication
*/
@@ -164,12 +164,14 @@
if (!$this->init_ok) {
return false;
}
+ $currentLogin = ($this->currentLogin >= 0) ?
MDB_Date::unix2Mdbstamp($this->currentLogin) : NULL;
+ $lastLogin = ($this->lastLogin >= 0) ?
MDB_Date::unix2Mdbstamp($this->lastLogin) : NULL;
$sql = 'UPDATE '.$this->prefix.'users SET
handle='. $this->dbc->getValue('text',
$this->handle).
', password='. $this->dbc->getValue('text',
$this->passwd).
', is_active='. $this->dbc->getValue('boolean',
$this->isActive).
- ', currentlogin='. $this->dbc->getValue('timestamp',
MDB_Date::unix2Mdbstamp($this->currentLogin)).
- ', lastlogin='. $this->dbc->getValue('timestamp',
MDB_Date::unix2Mdbstamp($this->lastLogin)).
+ ', currentlogin='. $this->dbc->getValue('timestamp',
$currentLogin).
+ ', lastlogin='. $this->dbc->getValue('timestamp',
$lastLogin).
' WHERE
user_id='. $this->dbc->getValue('text',
$this->authUserId);
--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|