summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2014-03-05 22:04:14 +0000
committerChristopher Smith <chris@jalakai.co.uk>2014-03-05 22:04:14 +0000
commitf87b5dbbbad408da775ac4c60ceb9f9666280527 (patch)
tree53e023772e7ebeb53bad6f13e867483bbed6a683 /inc/auth.php
parent6d2af55dde922ac10a288b4195b1bf338e7bc5a9 (diff)
downloadrpg-f87b5dbbbad408da775ac4c60ceb9f9666280527.tar.gz
rpg-f87b5dbbbad408da775ac4c60ceb9f9666280527.tar.bz2
use isset() + ?: or error suppression where value may not be set
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php
index 6c4636b2f..e44e837a7 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -325,7 +325,7 @@ function auth_browseruid() {
$uid = '';
$uid .= $_SERVER['HTTP_USER_AGENT'];
$uid .= $_SERVER['HTTP_ACCEPT_ENCODING'];
- $uid .= $_SERVER['HTTP_ACCEPT_CHARSET'];
+ $uid .= @$_SERVER['HTTP_ACCEPT_CHARSET'];
$uid .= substr($ip, 0, strpos($ip, '.'));
$uid = strtolower($uid);
return md5($uid);