Skip to content

Commit d5712ba

Browse files
author
Florian Schaal
committed
beautified code for marius ;)
1 parent 110bcd7 commit d5712ba

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

server/plugins-available/mail_plugin_dkim.inc.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,14 @@ function check_system($data) {
123123

124124
if (!is_dir($mail_config['dkim_path'])) {
125125
$app->log('DKIM Path '.$mail_config['dkim_path'].' not found - (re)created.', LOGLEVEL_DEBUG);
126-
if($app->system->is_user('amavis')) { $amavis_user='amavis'; }
127-
elseif ($app->system->is_user('vscan')) { $amavis_user='vscan'; }
128-
else { $amavis_user=''; }
126+
if($app->system->is_user('amavis')) {
127+
$amavis_user='amavis';
128+
} elseif ($app->system->is_user('vscan')) {
129+
$amavis_user='vscan';
130+
}
131+
else {
132+
$amavis_user='';
133+
}
129134
if(!empty($amavis_user)) {
130135
mkdir($mail_config['dkim_path'], 0750, true);
131136
exec('chown '.$amavis_user.' /var/lib/amavis/dkim');

0 commit comments

Comments
 (0)