don't clone arrays!

darcs-hash:20080606051823-84dde-1ba6bdfe546b5307afd97c2c7715f8d35b464e83.gz
This commit is contained in:
Evan Prodromou 2008-06-06 01:18:23 -04:00
parent 9152085702
commit c6f9e7c241

View File

@ -33,7 +33,7 @@ class UserauthorizationAction extends Action {
if (!common_logged_in()) { if (!common_logged_in()) {
# Go log in, and then come back # Go log in, and then come back
common_debug('userauthorization.php - saving URL for returnto'); common_debug('userauthorization.php - saving URL for returnto');
$argsclone = clone($args); $argsclone = $args;
unset($argsclone['action']); unset($argsclone['action']);
common_set_returnto(common_local_url('userauthorization', $argsclone)); common_set_returnto(common_local_url('userauthorization', $argsclone));
common_debug('userauthorization.php - redirecting to login'); common_debug('userauthorization.php - redirecting to login');