Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.16.14

Bug #4843 Notice appears during first login of a new user.
Submitted: 2005-07-15 16:50 UTC
From: l dot nienhaus at gmail dot co,m Assigned: lsmith
Status: Closed Package: LiveUser
PHP Version: 4.3.9 OS: Windows
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 2 + 36 = ?

 
 [2005-07-15 16:50 UTC] l dot nienhaus at gmail dot co,m
Description: ------------ During the first login (after adding a new user) there occurs the following notice: Notice: strtotime(): Called with empty time parameter in ...PEAR\LiveUser\Auth\DB.php on line 247 DB.php on line 247 says: $this->lastLogin = isset($result['lastlogin']) ? strtotime($result['lastlogin']) : ''; the parameter $result['lastlogin'] is empty, because its the first login, so I would recommend replacing the isset() call by an !empty() call: $this->lastLogin = !empty($result['lastlogin']) ? strtotime($result['lastlogin']) : '';

Comments

 [2005-07-18 16:16 UTC] smith at backendmedia dot com
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.