Skip to content

Commit

Permalink
Request #17633 Speeding up Date_Holidays_Driver->getHolidayForDate
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/Date_Holidays/trunk@320930 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
kenguest committed Dec 12, 2011
1 parent a9e2a0d commit a8e5b86
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Date/Holidays/Driver.php
Expand Up @@ -690,6 +690,11 @@ function getHolidayForDate($date, $locale = null, $multiple = false)
return $date;
}
}

if ($date->getYear() != $this->_year) {
return null;
}

$isodate = mktime(0,
0,
0,
Expand Down

0 comments on commit a8e5b86

Please sign in to comment.