Fix error with PHP version

1.10.x
Angel Fernando Quiroz Campos 11 years ago
parent e78f852131
commit 0f2b21ef4d
  1. 3
      main/inc/lib/formvalidator/Element/DateTimePicker.php

@ -32,12 +32,13 @@ class DateTimePicker extends HTML_QuickForm_text
$id = $this->getAttribute('id');
$value = $this->getValue();
$label = $this->getLabel();
if (!empty($value)) {
$value = api_format_date($value, DATE_TIME_FORMAT_LONG_24H);
}
if (empty($this->getLabel())) {
if (empty($label)) {
return $this->getElementJS() . '
<div class="input-group">
<span class="input-group-addon">

Loading…
Cancel
Save