diff options
author | jim-p <jimp@pfsense.org> | 2011-07-01 16:50:32 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-07-01 16:50:32 -0400 |
commit | 6fd8fde25d468dfa256a80a8e03e9d47ead16755 (patch) | |
tree | 98d00342556b23447d185dde8a9cfa4dec59903e /etc/inc/config.lib.inc | |
parent | a9404381eb0ec87ffa4c02c8e3902eb9697083f0 (diff) | |
download | pfsense-6fd8fde25d468dfa256a80a8e03e9d47ead16755.zip pfsense-6fd8fde25d468dfa256a80a8e03e9d47ead16755.tar.gz |
Use empty() so we don't use it if it's defined but blank.
Diffstat (limited to 'etc/inc/config.lib.inc')
-rw-r--r-- | etc/inc/config.lib.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc index ecb2ca1..01bd7ec 100644 --- a/etc/inc/config.lib.inc +++ b/etc/inc/config.lib.inc @@ -495,7 +495,7 @@ function write_config($desc="Unknown", $backup = true) { */ $username = empty($_SESSION["Username"]) ? "(system)" : $_SESSION['Username']; - if ($_SERVER['REMOTE_ADDR']) + if (!empty($_SERVER['REMOTE_ADDR'])) $username .= '@' . $_SERVER['REMOTE_ADDR']; if($backup) |