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 #1638

Wrong array key in Admin/Auth/Cont../DB

Details

Submitted2004-06-14 23:24 UTC
Fromworthy at home dot olsztyn dot pl
StatusBogus
PackageLiveUser
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2004-06-14 23:24 UTC] worthy at home dot olsztyn dot pl

Description:
------------
In file LiveUser/Admin/Auth/Container/DB.php (line 205; function addUser)
is wrong table key used. This generates error in DB Query.

Reproduce code:
---------------
$query = '
INSERT INTO
' . $this->authTable . '
(
' . $this->authTableCols['required']['user_id']['name'] . ',
' . $this->authTableCols['required']['handle']['name'] . ',
' . $this->authTableCols['required']['passwd']['name'] . '
' . $col . '
)
VALUES ...

Expected result:
----------------
$query = '
INSERT INTO
' . $this->authTable . '
(
' . $this->authTableCols['required']['auth_user_id']['name'] . ',
' . $this->authTableCols['required']['handle']['name'] . ',
' . $this->authTableCols['required']['passwd']['name'] . '
' . $col . '
)
VALUES ...