adding check to previous cleanUpFields fix

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5205 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-05-27 00:40:40 +00:00
parent 741e77c4b0
commit 80845b11c5

View file

@ -939,7 +939,7 @@ class Controller extends Object {
if ($_hour != 12 && (isset($this->data[$modelClass][$field['name'] . '_meridian']) && 'pm' == $this->data[$modelClass][$field['name'] . '_meridian'])) { if ($_hour != 12 && (isset($this->data[$modelClass][$field['name'] . '_meridian']) && 'pm' == $this->data[$modelClass][$field['name'] . '_meridian'])) {
$_hour = $_hour + 12; $_hour = $_hour + 12;
} }
if ($hour == 12 && 'am' == $this->data[$modelName][$field['name'] . '_meridian']) { if ($hour == 12 && (isset($this->data[$modelClass][$field['name'] . '_meridian']) && 'am' == $this->data[$modelName][$field['name'] . '_meridian']) {
$hour = '00'; $hour = '00';
} }
unset($this->data[$modelClass][$field['name'] . '_meridian']); unset($this->data[$modelClass][$field['name'] . '_meridian']);