Home » Authentication » LiveUser » Bug #7475
checking PDO::fetch() result as in Bug #7262
Details
| Submitted | 2006-04-24 18:14 UTC |
|---|---|
| From | marc dot jakubowski at gmail dot com |
| Assigned | arnaud |
| Status | Closed |
| Package | LiveUser |
| PHP Version | 5.1.1 |
| OS | WinXP |
| 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)) {