Skip to content

Commit

Permalink
Remove int typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Jan 16, 2015
1 parent f2e1c95 commit 47cb2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/cms/html/html.php
Expand Up @@ -975,7 +975,7 @@ public static function calendar($value, $name, $id, $format = '%Y-%m-%d', $attri
static::_('bootstrap.tooltip');

// Format value when not nulldate ('0000-00-00 00:00:00'), otherwise blank it as it would result in 1970-01-01.
if ((int) $value && $value != JFactory::getDbo()->getNullDate())
if ($value != JFactory::getDbo()->getNullDate())
{
$tz = date_default_timezone_get();
date_default_timezone_set('UTC');
Expand Down

0 comments on commit 47cb2b9

Please sign in to comment.