]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed E_NOTICE when returnto isn't set
authorJeffery To <jeffery.to@gmail.com>
Wed, 7 Oct 2009 09:09:00 +0000 (17:09 +0800)
committerJeffery To <jeffery.to@gmail.com>
Wed, 7 Oct 2009 09:28:30 +0000 (17:28 +0800)
lib/util.php

index a069ccf7b36ae5dca3e19fcb1dd092ffb5c006f3..9b299cb14fccebe93ece134836c09362f041ce29 100644 (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()