Home » Authentication » LiveUser » Bug #4843
Notice appears during first login of a new user.
Details
| 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) |
Comments
[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 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.