Bernd Wurst commited on 2014-02-03 17:30:37
Zeige 2 geänderte Dateien mit 6 Einfügungen und 6 Löschungen.
| ... | ... |
@@ -245,7 +245,7 @@ function save_vmail_account($account) |
| 245 | 245 |
for ($i=0;$i < count($account['forwards']); $i++) |
| 246 | 246 |
{
|
| 247 | 247 |
if ($account['forwards'][$i]['spamfilter'] != 'tag' && $account['forwards'][$i]['spamfilter'] != 'delete') |
| 248 |
- $account['forwards'][$i]['spamfilter'] = ''; |
|
| 248 |
+ $account['forwards'][$i]['spamfilter'] = NULL; |
|
| 249 | 249 |
$account['forwards'][$i]['destination'] = filter_input_general($account['forwards'][$i]['destination']); |
| 250 | 250 |
if (! check_emailaddr($account['forwards'][$i]['destination'])) |
| 251 | 251 |
system_failure('Das Weiterleitungs-Ziel »'.$account['forwards'][$i]['destination'].'« ist keine E-Mail-Adresse!');
|
| ... | ... |
@@ -72,7 +72,7 @@ function ipv6_possible($server) |
| 72 | 72 |
function empty_vhost() |
| 73 | 73 |
{
|
| 74 | 74 |
$vhost['id'] = NULL; |
| 75 |
- $vhost['hostname'] = ''; |
|
| 75 |
+ $vhost['hostname'] = NULL; |
|
| 76 | 76 |
|
| 77 | 77 |
$vhost['domain_id'] = -1; |
| 78 | 78 |
$vhost['domain'] = $_SESSION['userinfo']['username'].'.'.config('masterdomain');
|
| ... | ... |
@@ -105,12 +105,12 @@ function empty_vhost() |
| 105 | 105 |
|
| 106 | 106 |
function empty_alias() |
| 107 | 107 |
{
|
| 108 |
- $alias['hostname'] = ''; |
|
| 108 |
+ $alias['hostname'] = NULL; |
|
| 109 | 109 |
|
| 110 | 110 |
$alias['domain_id'] = -1; |
| 111 | 111 |
$alias['domain'] = $_SESSION['userinfo']['username'].'.'.config('masterdomain');
|
| 112 | 112 |
|
| 113 |
- $alias['options'] = ''; |
|
| 113 |
+ $alias['options'] = NULL; |
|
| 114 | 114 |
return $alias; |
| 115 | 115 |
} |
| 116 | 116 |
|
| ... | ... |
@@ -183,12 +183,12 @@ function get_all_aliases($vhost) |
| 183 | 183 |
$aliases = get_aliases($vhost['id']); |
| 184 | 184 |
$ret = array(); |
| 185 | 185 |
if (strstr($vhost['options'], 'aliaswww')) {
|
| 186 |
- array_push($ret, array('id' => 'www', 'fqdn' => 'www.'.$vhost['fqdn'], 'options' => (strstr($vhost['options'], 'forwardwww') ? 'forward' : '')));
|
|
| 186 |
+ array_push($ret, array('id' => 'www', 'fqdn' => 'www.'.$vhost['fqdn'], 'options' => (strstr($vhost['options'], 'forwardwww') ? 'forward' : NULL)));
|
|
| 187 | 187 |
} |
| 188 | 188 |
foreach ($aliases as $item) {
|
| 189 | 189 |
array_push($ret, $item); |
| 190 | 190 |
if (strstr($item['options'], 'aliaswww')) {
|
| 191 |
- array_push($ret, array('id' => 'www_'.$item['id'], 'fqdn' => 'www.'.$item['fqdn'], 'options' => (strstr($item['options'], 'forward') ? 'forward' : '')));
|
|
| 191 |
+ array_push($ret, array('id' => 'www_'.$item['id'], 'fqdn' => 'www.'.$item['fqdn'], 'options' => (strstr($item['options'], 'forward') ? 'forward' : NULL)));
|
|
| 192 | 192 |
} |
| 193 | 193 |
} |
| 194 | 194 |
return $ret; |
| 195 | 195 |