mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Change equal operators to identity operators
This commit is contained in:
parent
2ac545291a
commit
e38892ff06
1 changed files with 2 additions and 2 deletions
|
@ -2383,14 +2383,14 @@ class FormHelper extends AppHelper {
|
|||
$current->setDate($year, $month, $day);
|
||||
}
|
||||
if ($hour !== null) {
|
||||
if ($timeFormat == '12') {
|
||||
if ($timeFormat === '12') {
|
||||
$hour = date('H', strtotime("$hour:$min $meridian"));
|
||||
}
|
||||
$current->setTime($hour, $min);
|
||||
}
|
||||
$change = (round($min * (1 / $interval)) * $interval) - $min;
|
||||
$current->modify($change > 0 ? "+$change minutes" : "$change minutes");
|
||||
$format = ($timeFormat == '12') ? 'Y m d h i a' : 'Y m d H i a';
|
||||
$format = ($timeFormat === '12') ? 'Y m d h i a' : 'Y m d H i a';
|
||||
$newTime = explode(' ', $current->format($format));
|
||||
list($year, $month, $day, $hour, $min, $meridian) = $newTime;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue