summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2012-08-24 14:24:33 +0200
committerMichael Hamann <michael@content-space.de>2012-08-24 16:50:07 +0200
commit4498277816974e5c1f30071465349867ec497ca0 (patch)
tree1920935986d25b1d925fdae21d837d8c5b86d2fc
parentc8b076b15853f1f79ea87f5f493c7b726cdca0a6 (diff)
downloadrpg-4498277816974e5c1f30071465349867ec497ca0.tar.gz
rpg-4498277816974e5c1f30071465349867ec497ca0.tar.bz2
Prevent access to undefined $auth variable
-rw-r--r--inc/auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php
index 905cc14bf..99adfa791 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -65,7 +65,7 @@ function auth_setup() {
nice_die($lang['authmodfailed']);
}
- if(!$auth) return false;
+ if(!isset($auth) || !$auth) return false;
// do the login either by cookie or provided credentials XXX
$INPUT->set('http_credentials', false);