cvs: pearweb /include pear-database-user.php

From: Date: Sun, 23 Sep 2007 22:21:14 +0000
Subject: cvs: pearweb /include pear-database-user.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-48661@lists.php.net to get a copy of this message
cellog Sun Sep 23 22:21:14 2007 UTC Modified files: /pearweb/include pear-database-user.php Log: correctness: $info may be null, so check type before indexing http://cvs.php.net/viewvc.cgi/pearweb/include/pear-database-user.php?r1=1.16&r2=1.17&diff_format=u Index: pearweb/include/pear-database-user.php diff -u pearweb/include/pear-database-user.php:1.16 pearweb/include/pear-database-user.php:1.17 --- pearweb/include/pear-database-user.php:1.16 Sat Jun 16 02:44:37 2007 +++ pearweb/include/pear-database-user.php Sun Sep 23 22:21:13 2007 @@ -320,7 +320,7 @@ $handle = strtolower($data['handle']); $info = user::info($handle, null, 'any'); - if (isset($info['created'])) { + if (!is_array($info) || isset($info['created'])) { $data['jumpto'] = "handle"; $errors[] = 'Sorry, that username is already taken'; }

« previous php.pear.cvs (#48661) next »