PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Authentication » LiveUser » Bug #4843

Notice appears during first login of a new user.

Details

Submitted2005-07-15 16:50 UTC
Froml dot nienhaus at gmail dot co,m
Assignedlsmith
StatusClosed
PackageLiveUser
PHP Version4.3.9
OSWindows
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.