mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03:00
Resolve #295
This commit is contained in:
parent
050815dd7e
commit
d08998eb1c
1 changed files with 2 additions and 2 deletions
|
|
@ -313,10 +313,10 @@ abstract class SearchCriterias
|
||||||
$sSize = \preg_replace('/[^0-9KM]/', '', \strtoupper($sSize));
|
$sSize = \preg_replace('/[^0-9KM]/', '', \strtoupper($sSize));
|
||||||
$iResult = \intval($sSize);
|
$iResult = \intval($sSize);
|
||||||
switch (\substr($sSize, -1)) {
|
switch (\substr($sSize, -1)) {
|
||||||
case 'K':
|
|
||||||
$iResult *= 1024;
|
|
||||||
case 'M':
|
case 'M':
|
||||||
$iResult *= 1024;
|
$iResult *= 1024;
|
||||||
|
case 'K':
|
||||||
|
$iResult *= 1024;
|
||||||
}
|
}
|
||||||
return $iResult;
|
return $iResult;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue