diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-03-05 22:04:14 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-03-05 22:04:14 +0000 |
commit | f87b5dbbbad408da775ac4c60ceb9f9666280527 (patch) | |
tree | 53e023772e7ebeb53bad6f13e867483bbed6a683 /inc/auth.php | |
parent | 6d2af55dde922ac10a288b4195b1bf338e7bc5a9 (diff) | |
download | rpg-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.php | 2 |
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); |