Browse code

fix datatype error

Bernd Wurst authored on03/09/2021 21:17:04
Showing1 changed files
... ...
@@ -227,7 +227,7 @@ function save_vmail_account($account)
227 227
         $newaccount = true;
228 228
     }
229 229
 
230
-    $account['enableextensions'] = (bool) $account['enableextensions'];
230
+    $account['enableextensions'] = (int) (bool) $account['enableextensions'];
231 231
     if ($accountlogin) {
232 232
         if ($account['domain'] != $oldaccount['domain']) {
233 233
             system_failure('Sie können die E-Mail-Adresse nicht ändern!');