mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixes #3191, Undefined variable: _hour
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5656 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
6c650e2371
commit
7c40e8d6c9
1 changed files with 3 additions and 3 deletions
|
@ -962,10 +962,10 @@ class Controller extends Object {
|
|||
}
|
||||
|
||||
if (isset($time['_hour']) && $time['_hour'] != 12 && 'pm' == $meridian) {
|
||||
$time['_hour'] = $_hour + 12;
|
||||
$time['_hour'] = $time['_hour'] + 12;
|
||||
}
|
||||
if (isset($time['_hour']) && $time['_hour'] == 12 && 'am' == $meridian) {
|
||||
$time['_hour'] = '00';
|
||||
$time['_hour'] = '00';
|
||||
}
|
||||
|
||||
$time = join(':', array_values($time));
|
||||
|
@ -974,7 +974,7 @@ class Controller extends Object {
|
|||
}
|
||||
}
|
||||
|
||||
if ($useNewDate && (isset($date) || $value['null'])) {
|
||||
if ($useNewDate && (isset($date) || isset($value['null']))) {
|
||||
$this->data[$modelClass][$field] = $date;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue