diff --git a/lib/classes/api/commands/class.Customers.php b/lib/classes/api/commands/class.Customers.php index 1f109629..2b3d9b75 100644 --- a/lib/classes/api/commands/class.Customers.php +++ b/lib/classes/api/commands/class.Customers.php @@ -265,7 +265,6 @@ class Customers extends ApiCommand implements ResourceEntity $customernumber = validate($customernumber, 'customer number', '/^[A-Za-z0-9 \-]*$/Di', '', array(), true); $def_language = validate($def_language, 'default language', '', '', array(), true); $custom_notes = validate(str_replace("\r\n", "\n", $custom_notes), 'custom_notes', '/^[^\0]*$/', '', array(), true); - $allowed_phpconfigs = array_map('intval', $allowed_phpconfigs); if (Settings::Get('system.mail_quota_enabled') != '1') { $email_quota = - 1; @@ -294,6 +293,7 @@ class Customers extends ApiCommand implements ResourceEntity $allowed_phpconfigs[] = $allowed_phpconfig; } } + $allowed_phpconfigs = array_map('intval', $allowed_phpconfigs); $diskspace = $diskspace * 1024; $traffic = $traffic * 1024 * 1024;