diff options
author | doktornotor <notordoktor@gmail.com> | 2015-10-28 12:51:05 +0100 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-10-28 12:51:05 +0100 |
commit | 79625e69d18d29f747283fd52cfac2f6cc659920 (patch) | |
tree | 931ac58a28398e12e551ff382ec777822d5d739a /config | |
parent | d3430d6198432fbab94231183e4588978437f7ed (diff) | |
download | pfsense-packages-79625e69d18d29f747283fd52cfac2f6cc659920.tar.gz pfsense-packages-79625e69d18d29f747283fd52cfac2f6cc659920.tar.bz2 pfsense-packages-79625e69d18d29f747283fd52cfac2f6cc659920.zip |
Simplify username code
Diffstat (limited to 'config')
-rwxr-xr-x | config/snort/snort.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 0f221c43..60959ad6 100755 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -3802,11 +3802,7 @@ function snort_sync_on_changes() { $protocol = $sh['varsyncprotocol']; $error = ''; $success = TRUE; - if ($sh['varsyncusername']) { - $username = $sh['varsyncusername']; - } else { - $username = 'admin'; - } + $username = $sh['varsyncusername'] ?: 'admin'; if ($password == "") { $error = "Password parameter is empty. "; $success = FALSE; |