[minor] formatting issues
This commit is contained in:
parent
b4e068dcdc
commit
d4b19ed8a3
@ -11128,9 +11128,9 @@ function GETPOSTDATE($prefix, $hourTime = '', $gm = 'auto')
|
|||||||
$minute = GETPOSTINT($prefix . 'minute');
|
$minute = GETPOSTINT($prefix . 'minute');
|
||||||
$second = GETPOSTINT($prefix . 'second');
|
$second = GETPOSTINT($prefix . 'second');
|
||||||
} elseif (preg_match('/^(\d\d):(\d\d):(\d\d)$/', $hourTime, $m)) {
|
} elseif (preg_match('/^(\d\d):(\d\d):(\d\d)$/', $hourTime, $m)) {
|
||||||
$hour = (int)$m[1];
|
$hour = intval($m[1]);
|
||||||
$minute = (int)$m[2];
|
$minute = intval($m[2]);
|
||||||
$second = (int)$m[3];
|
$second = intval($m[3]);
|
||||||
} else {
|
} else {
|
||||||
$hour = $minute = $second = 0;
|
$hour = $minute = $second = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user