Skip to content

Commit

Permalink
- php forces pass by ref anyways .. but the way things were things br…
Browse files Browse the repository at this point in the history
…oke with an error logger

git-svn-id: http://svn.php.net/repository/pear/packages/LiveUser/trunk@218675 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Lukas Smith committed Aug 22, 2006
1 parent 6018dfd commit 5b995d1
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions LiveUser.php
Expand Up @@ -731,24 +731,16 @@ function classExists($classname)
* @access public
* @see LiveUser::factory
*/
function readConfig(&$conf)
function readConfig($conf)
{
// probably a futile attempt at working out reference issues in arrays
$options = $conf;

if (array_key_exists('debug', $conf) && is_object($conf['debug'])) {
$options['debug'] = true;
}
if (array_key_exists('authContainers', $conf)) {
$this->_authContainers =& $conf['authContainers'];
unset($options['authContainers']);
}
if (array_key_exists('permContainer', $conf)) {
$this->_permContainer =& $conf['permContainer'];
unset($options['permContainer']);
}

$this->_options = LiveUser::arrayMergeClobber($this->_options, $options);
$this->_options = LiveUser::arrayMergeClobber($this->_options, $conf);
if (array_key_exists('cookie', $this->_options) && $this->_options['cookie']) {
$cookie_default = array(
'name' => 'ludata',
Expand Down

0 comments on commit 5b995d1

Please sign in to comment.