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_Admin » Bug #4120

Error in query for getUsers('auth') Function

Details

Submitted2005-04-11 19:00 UTC
Frombenpjohnson at gmail dot com
StatusBogus
PackageLiveUser_Admin
PHP Version5.0.3
OSWindows XP
Roadmaps(Not assigned)

Comments

[2005-04-11 19:00 UTC] benpjohnson at gmail dot com

Description:
------------
version: 0.2.1

The getUsers() function produces a query error when working with the auth container

Reproduce code:
---------------
$user = $admin->getUsers('auth',array('handle' => $handle), true);

Expected result:
----------------
false or user information

Actual result:
--------------
DB Error: syntax error

SELECT
auth_user_id AS auth_user_id,
email AS handle,
passwd AS passwd
,last_login AS lastlogin,is_active AS is_active
FROM
login_users WHERE bb'b' [nativecode=1064 ** You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''b'' at line 7]