Bernd Wurst commited on 2021-09-03 21:02:58
Zeige 1 geänderte Dateien mit 3 Einfügungen und 2 Löschungen.
... | ... |
@@ -334,6 +334,7 @@ function save_vmail_account($account) |
334 | 334 |
$args = array(":local" => $account['local'], |
335 | 335 |
":domain" => $account['domain'], |
336 | 336 |
":password" => $password, |
337 |
+ ":enableextensions" => $account['enableextensions'], |
|
337 | 338 |
":smtpreply" => $account['smtpreply'], |
338 | 339 |
":quota" => $account['quota'], |
339 | 340 |
":quota_threshold" => $account['quota_threshold'], |
... | ... |
@@ -342,7 +343,7 @@ function save_vmail_account($account) |
342 | 343 |
$query = ''; |
343 | 344 |
if ($newaccount) { |
344 | 345 |
unset($args[":id"]); |
345 |
- $query = "INSERT INTO mail.vmail_accounts (local, domain, password, smtpreply, quota, quota_threshold) VALUES (:local, :domain, :password, :smtpreply, :quota, :quota_threshold)"; |
|
346 |
+ $query = "INSERT INTO mail.vmail_accounts (local, domain, password, enableextensions, smtpreply, quota, quota_threshold) VALUES (:local, :domain, :password, :enableextensions, :smtpreply, :quota, :quota_threshold)"; |
|
346 | 347 |
} else { |
347 | 348 |
if ($set_password) { |
348 | 349 |
$pw=", password=:password"; |
... | ... |
@@ -350,7 +351,7 @@ function save_vmail_account($account) |
350 | 351 |
unset($args[":password"]); |
351 | 352 |
$pw=''; |
352 | 353 |
} |
353 |
- $query = "UPDATE mail.vmail_accounts SET local=:local, domain=:domain{$pw}, smtpreply=:smtpreply, quota=:quota, quota_threshold=:quota_threshold WHERE id=:id"; |
|
354 |
+ $query = "UPDATE mail.vmail_accounts SET local=:local, domain=:domain{$pw}, enableextensions=:enableextensions, smtpreply=:smtpreply, quota=:quota, quota_threshold=:quota_threshold WHERE id=:id"; |
|
354 | 355 |
} |
355 | 356 |
db_query($query, $args); |
356 | 357 |
if ($newaccount) { |
357 | 358 |