Skip to content

Commit

Permalink
Fix #15569 (#15573)
Browse files Browse the repository at this point in the history
  • Loading branch information
fevangelou authored and wilsonge committed Apr 26, 2017
1 parent 3d3c493 commit f461bd5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libraries/cms/html/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -1028,11 +1028,11 @@ public static function calendar($value, $name, $id, $format = '%Y-%m-%d', $attri
$class = isset($attribs['class']) ? $attribs['class'] : '';
$onchange = isset($attribs['onChange']) ? $attribs['onChange'] : '';

$showTime = !empty($showTime) ? ($showTime === 'true' ? "1" : "0") : "1";
$todayBtn = !empty($todayBtn) ? ($todayBtn === 'true' ? "1" : "0") : "1";
$weekNumbers = !empty($weekNumbers) ? ($weekNumbers === 'true' ? "1" : "0") : "0";
$fillTable = !empty($fillTable) ? ($fillTable === 'true' ? "1" : "0") : "1";
$singleHeader = !empty($singleHeader) ? ($singleHeader === 'true' ? "1" : "0") : "0";
$showTime = ($showTime) ? "1" : "0";
$todayBtn = ($todayBtn) ? "1" : "0";
$weekNumbers = ($weekNumbers) ? "1" : "0";
$fillTable = ($fillTable) ? "1" : "0";
$singleHeader = ($singleHeader) ? "1" : "0";

// Format value when not nulldate ('0000-00-00 00:00:00'), otherwise blank it as it would result in 1970-01-01.
if ($value && $value != JFactory::getDbo()->getNullDate() && strtotime($value) !== false)
Expand Down

0 comments on commit f461bd5

Please sign in to comment.