aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-10-28 12:51:05 +0100
committerdoktornotor <notordoktor@gmail.com>2015-10-28 12:51:05 +0100
commit79625e69d18d29f747283fd52cfac2f6cc659920 (patch)
tree931ac58a28398e12e551ff382ec777822d5d739a /config/snort
parentd3430d6198432fbab94231183e4588978437f7ed (diff)
downloadpfsense-packages-79625e69d18d29f747283fd52cfac2f6cc659920.tar.gz
pfsense-packages-79625e69d18d29f747283fd52cfac2f6cc659920.tar.bz2
pfsense-packages-79625e69d18d29f747283fd52cfac2f6cc659920.zip
Simplify username code
Diffstat (limited to 'config/snort')
-rwxr-xr-xconfig/snort/snort.inc6
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;