Fixed E_NOTICE when returnto isn't set

This commit is contained in:
Jeffery To 2009-10-07 17:09:00 +08:00
parent 9449a1e39c
commit 838c13063a

View File

@ -981,7 +981,7 @@ function common_set_returnto($url)
function common_get_returnto()
{
common_ensure_session();
return $_SESSION['returnto'];
return (array_key_exists('returnto', $_SESSION)) ? $_SESSION['returnto'] : null;
}
function common_timestamp()