From: Jeffery To Date: Wed, 7 Oct 2009 09:09:00 +0000 (+0800) Subject: Fixed E_NOTICE when returnto isn't set X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=838c13063a8371b858a249b3bc511b2b77ce1c5f;p=quix0rs-gnu-social.git Fixed E_NOTICE when returnto isn't set --- diff --git a/lib/util.php b/lib/util.php index a069ccf7b3..9b299cb14f 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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()