Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.inc |
— | — | @@ -519,13 +519,13 @@ |
520 | 520 | // can show up here either as an array or a string, depending on |
521 | 521 | // whether it came from user input or a wiki page |
522 | 522 | if (is_array($datetime)) { |
523 | | - if (isset($datetime['hour'])) $hour = $cur_value['hour']; |
524 | | - if (isset($datetime['minute'])) $minute = $cur_value['minute']; |
525 | | - if (isset($datetime['second'])) $second = $cur_value['second']; |
| 523 | + if (isset($datetime['hour'])) $hour = $datetime['hour']; |
| 524 | + if (isset($datetime['minute'])) $minute = $datetime['minute']; |
| 525 | + if (isset($datetime['second'])) $second = $datetime['second']; |
526 | 526 | if (! $sfg24HourTime) { |
527 | | - if (isset($datetime['ampm24h'])) $ampm24h = $cur_value['ampm24h']; |
| 527 | + if (isset($datetime['ampm24h'])) $ampm24h = $datetime['ampm24h']; |
528 | 528 | } |
529 | | - if (isset($datetime['timezone'])) $timezone = $cur_value['timezone']; |
| 529 | + if (isset($datetime['timezone'])) $timezone = $datetime['timezone']; |
530 | 530 | } else { |
531 | 531 | $actual_date = strtotime($datetime); |
532 | 532 | if ($sfg24HourTime) { |