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)    

 [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']) : '';


 [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 In case this was a 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.