mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 09:49:16 +02:00
refactoring
This commit is contained in:
parent
a3871c9d31
commit
2b728c0f7d
1 changed files with 1 additions and 1 deletions
|
@ -448,7 +448,7 @@ class quota extends baseModule {
|
|||
return (int) $quotaInput;
|
||||
}
|
||||
if (str_ends_with($quotaInput, 'K')) {
|
||||
return (int) ((int) substr($quotaInput, 0, -1));
|
||||
return (int) substr($quotaInput, 0, -1);
|
||||
}
|
||||
if (str_ends_with($quotaInput, 'M')) {
|
||||
return 1024 * ((int) substr($quotaInput, 0, -1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue