Fixed E_NOTICE when returnto isn't set
This commit is contained in:
parent
9449a1e39c
commit
838c13063a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user