mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Allow 2 digits with leading 0 when increment >= 10
This commit is contained in:
parent
999fa2c422
commit
0cfed6ba11
@ -403,7 +403,7 @@ class select_widget
|
||||
$format = '%d';
|
||||
if (!empty($type3) && $type3[0] == '0') // leading zero
|
||||
{
|
||||
$format = '%0'.strlen($type3).'d';
|
||||
$format = '%0'.(intval($type3) < 10 ? strlen($type3): strlen($type3) - 1).'d';
|
||||
}
|
||||
$type3 = !$type3 ? 1 : intval($type3); // decrement
|
||||
if (($type <= $type2) != ($type3 > 0))
|
||||
|
Loading…
Reference in New Issue
Block a user