aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
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;