summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-07-01 16:50:32 -0400
committerjim-p <jimp@pfsense.org>2011-07-01 16:50:32 -0400
commit6fd8fde25d468dfa256a80a8e03e9d47ead16755 (patch)
tree98d00342556b23447d185dde8a9cfa4dec59903e /etc
parenta9404381eb0ec87ffa4c02c8e3902eb9697083f0 (diff)
downloadpfsense-6fd8fde25d468dfa256a80a8e03e9d47ead16755.zip
pfsense-6fd8fde25d468dfa256a80a8e03e9d47ead16755.tar.gz
Use empty() so we don't use it if it's defined but blank.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.lib.inc2
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)
OpenPOWER on IntegriCloud