Skip to content

Commit

Permalink
Update calendar.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ggppdk committed Mar 5, 2018
1 parent e216889 commit f27cbd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/joomla/form/fields/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ public function setup(SimpleXMLElement $element, $value, $group = null)
$this->filltable = (string) $this->element['filltable'] ? (string) $this->element['filltable'] : 'true';
$this->timeformat = (int) $this->element['timeformat'] ? (int) $this->element['timeformat'] : 24;
$this->singleheader = (string) $this->element['singleheader'] ? (string) $this->element['singleheader'] : 'false';
$this->minyear = (string) $this->element['minyear'] ? (string) $this->element['minyear'] : null;
$this->maxyear = (string) $this->element['maxyear'] ? (string) $this->element['maxyear'] : null;
$this->minyear = strlen((string) $this->element['minyear']) ? (string) $this->element['minyear'] : null;
$this->maxyear = strlen((string) $this->element['maxyear']) ? (string) $this->element['maxyear'] : null;

if ($this->maxyear < 0 || $this->minyear > 0)
{
Expand Down

0 comments on commit f27cbd6

Please sign in to comment.