Home » Authentication » LiveUser » Bug #295
getAuthAdminObjectByName errors in latest CVS
Details
| Submitted | 2003-11-25 15:26 UTC |
|---|---|
| From | liveuser at bago dot org |
| Assigned | arnaud |
| Status | Closed |
| Package | LiveUser |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2003-11-25 15:26 UTC] liveuser at bago dot org
Description:
------------
Looking at the LiveUser getAuthAdminObjectByName function code I found:
$con =& new $classname($container, array('type'=>$container['type']));
So the second parameter always contain an array with a single value: type.
Now in the constructor of the Admin/Auth/Container/DB.php
function &LiveUser_Admin_Auth_Container_DB(&$connectOptions, $conf)
I found that the code try to read $conf['authTable'] and more properties
overwriting the first part of the constructor where it assign to the object
properties the values from the connectOptions array.
$conf['authTable'] will never be something different from null (as you can
see in the second line of this example) and will overwrite the default
authTable or the authTable defined with the value from the connectOptions
array.