summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2009-10-07 17:09:00 +0800
committerJeffery To <jeffery.to@gmail.com>2009-10-07 17:28:30 +0800
commit838c13063a8371b858a249b3bc511b2b77ce1c5f (patch)
treead7ec4187ba2a881e49119eed7790d315b8363a0 /lib
parent9449a1e39c8470072aa30ccde1ac5d2b55d65bad (diff)
Fixed E_NOTICE when returnto isn't set
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index a069ccf7b..9b299cb14 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()