summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Auth.php b/Auth.php
index 07b48d1..98df9a8 100644
--- a/Auth.php
+++ b/Auth.php
@@ -378,7 +378,7 @@ class Auth
}
$data['hash'] = sha1($this->config->site_key . microtime());
- $agent = $_SERVER['HTTP_USER_AGENT'];
+ $agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
$this->deleteExistingSessions($uid);