diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-05-16 17:19:15 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-05-16 17:19:15 -0700 |
commit | 329cc1f9b6657ce580b3a297e39a7cd259a62537 (patch) | |
tree | dca09b3a78fcdb9a39646f8968312bf0c722b455 /pages | |
parent | c6e4239a672d2456c67e219da480a63f77056723 (diff) | |
download | pathery-329cc1f9b6657ce580b3a297e39a7cd259a62537.tar.xz |
More PHP warning and notice fixes.
Diffstat (limited to 'pages')
-rw-r--r-- | pages/login.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pages/login.php b/pages/login.php index f893683..f73ca8c 100644 --- a/pages/login.php +++ b/pages/login.php @@ -1,6 +1,6 @@ <?php
if ($accepted) {
- if ($_GET['mobile'] == 'true') {
+ if (isset($_GET['mobile']) AND $_GET['mobile'] == 'true') {
header("Location: $mydomain"."easytoken");
exit;
}
@@ -160,9 +160,10 @@ try { setcookie("doLogin", "yes", $expire);
setcookie("auth", $three, $expire);
-
+ $refTo = null;
+ if (isset($_GET['ref'])) $refTo = $_GET['ref'];
//DoRedirect("Thank you $display.", $_GET['ref']);
- DoRedirect("", $_GET['ref'], 0);
+ DoRedirect("", $refTo, 0);
exit;
} //Okay well, we considered logging in at least, right?
else {
|