Home » Authentication » LiveUser » Bug #2456
LiveUser/Admin/Auth/Container/MDB2.php line 222
Details
| Submitted | 2004-10-05 07:34 UTC |
|---|---|
| From | kiryu at angelicwing dot net |
| Assigned | dufuz |
| Status | Closed |
| Package | LiveUser |
| PHP Version | Irrelevant |
| OS | Any |
| 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
+?>