aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-07 12:28:16 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-07 12:28:16 +0000
commit778589c635adb98278353d9438dc5ed0d8dbcbb2 (patch)
tree7fe356fb61f2e1bb673e9c85105d71212870ba37 /actions
parent9687af5b2839b212b54742fa53d4167ff5db18f5 (diff)
downloadelgg-778589c635adb98278353d9438dc5ed0d8dbcbb2.tar.gz
elgg-778589c635adb98278353d9438dc5ed0d8dbcbb2.tar.bz2
fixed warning on access of array index that did not exist in session global
git-svn-id: http://code.elgg.org/elgg/trunk@3734 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions')
-rw-r--r--actions/login.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/actions/login.php b/actions/login.php
index 26a144045..86160bb00 100644
--- a/actions/login.php
+++ b/actions/login.php
@@ -12,7 +12,6 @@
action_gatekeeper();
// Get username and password
-
$username = get_input('username');
$password = get_input("password");
$persistent = get_input("persistent", false);
@@ -28,9 +27,9 @@ if (!empty($username) && !empty($password)) {
// Set the system_message as appropriate
if ($result) {
system_message(elgg_echo('loginok'));
- if ($_SESSION['last_forward_from']) {
+ if (isset($_SESSION['last_forward_from']) && $_SESSION['last_forward_from']) {
$forward_url = $_SESSION['last_forward_from'];
- $_SESSION['last_forward_from'] = "";
+ unset($_SESSION['last_forward_from']);
forward($forward_url);
} else {
if ( (isadminloggedin()) && (!datalist_get('first_admin_login'))) {