logo       

cvs: pear /Perm_LiveUser/Auth/Container MDB.php: msg#00578

Subject: cvs: pear /Perm_LiveUser/Auth/Container MDB.php
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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe