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

LiveUser/Admin/Auth/Container/MDB2.php line 222

Details

Submitted2004-10-05 07:34 UTC
Fromkiryu at angelicwing dot net
Assigneddufuz
StatusClosed
PackageLiveUser
PHP VersionIrrelevant
OSAny
Roadmaps(Not assigned)

Comments

[2004-10-05 07:34 UTC] kiryu at angelicwing dot net

Description:
------------
When calling addUser and $optionalField and $customFields are not set up, generation of SQL goes wrong.

Index: Admin/Auth/Container/MDB2.php
===================================================================
RCS file: /repository/pear/Perm_LiveUser/Admin/Auth/Container/MDB2.php,v
retrieving revision 1.39
diff -u -r1.39 MDB2.php
--- Admin/Auth/Container/MDB2.php 3 Oct 2004 10:24:31 -0000 1.39
+++ Admin/Auth/Container/MDB2.php 5 Oct 2004 07:22:35 -0000
@@ -199,6 +199,9 @@
if (is_array($col) && count($col) > 0) {
$col = ',' . implode(',', $col);
$val = ',' . implode(',', $val);
+ } else {
+ $col = '';
+ $val = '';
}

// Register new user in auth table
@@ -451,4 +454,4 @@
return $res;
}
}
-?>
\ No newline at end of file
+?>