diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-03-05 21:58:46 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-03-05 21:58:46 +0000 |
commit | 0e80bb5e347ff00c6f81627d8e39dafaaa923bc5 (patch) | |
tree | 19e8450aeef463ffe7278e3fb5e8888940113b4a /inc/init.php | |
parent | 17dd401e94c682034b7f3d9164ac3523ab01d825 (diff) | |
download | rpg-0e80bb5e347ff00c6f81627d8e39dafaaa923bc5.tar.gz rpg-0e80bb5e347ff00c6f81627d8e39dafaaa923bc5.tar.bz2 |
use empty() where array values might not be set
Diffstat (limited to 'inc/init.php')
-rw-r--r-- | inc/init.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/init.php b/inc/init.php index 9b8465911..6fb27bd2a 100644 --- a/inc/init.php +++ b/inc/init.php @@ -176,7 +176,7 @@ if(function_exists('set_magic_quotes_runtime')) @set_magic_quotes_runtime(0); $_REQUEST = array_merge($_GET,$_POST); // we don't want a purge URL to be digged -if(isset($_REQUEST['purge']) && $_SERVER['HTTP_REFERER']) unset($_REQUEST['purge']); +if(isset($_REQUEST['purge']) && !empty($_SERVER['HTTP_REFERER'])) unset($_REQUEST['purge']); // disable gzip if not available if($conf['compression'] == 'bz2' && !function_exists('bzopen')){ |