single_login causing warnings in user_logout

Hi,

i'm having problems with the single_login.php hack. Placed it in my root, works fine. But i get the warnings below. onbviously it got something to do with the _logout.php, but i didn't modify the logout or activate it. Does anyone here have a clue how to fix this?

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in example.com/zenphoto2/zp-core/plugins/user_logout.php on line 22

Warning: array_unique() [function.array-unique]: The argument should be an array in example.com/zenphoto2/zp-core/plugins/user_logout.php on line 22

Warning: Invalid argument supplied for foreach() in example.com/zenphoto2/zp-core/plugins/user_logout.php on line 23

Comments

  • The user_logout.php script is used by the single-login hack. The error you are getting seems to be complaining about the `$_SESSION` variable. That should be a PHP special global, so I do not know why it would not be setup correctly. However, you can avoid the error by changing line 22 from:
    `$candidate = array_unique(Array_merge(array_keys($_COOKIE), $_SESSION));`
    to:
    `$candidate = array_keys($_COOKIE);`
    This will not be compatible with the `album sessions` option, though.
Sign In or Register to comment.