PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » LiveUser » Bug #7475

checking PDO::fetch() result as in Bug #7262

Details

Submitted2006-04-24 18:14 UTC
Frommarc dot jakubowski at gmail dot com
Assignedarnaud
StatusClosed
PackageLiveUser
PHP Version5.1.1
OSWinXP
Roadmaps(Not assigned)

Comments

[2006-04-24 18:14 UTC] marc dot jakubowski at gmail dot com

Description:
------------
Hi,
when testing the new beta, the changelog says that bug #7262 was fixed but the error and the old code in LiveUser\Auth\PDO.php still exists in Line 263:
if ($row === false)

Furthermore the variable $result is not set in line 274, should be $row i guess.

So I suggest the following changes:

- if ($row === false) {
+ if (empty($row)) {

and

- if (!is_array($result)) {
+ if (!is_array($row)) {