Permalink
Browse files

Request #17633 Speeding up Date_Holidays_Driver->getHolidayForDate

git-svn-id: http://svn.php.net/repository/pear/packages/Date_Holidays/trunk@320930 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent a9e2a0d commit a8e5b86ea86fba7795ee8ca60009e609cd35ae3e @kenguest kenguest committed Dec 12, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 Date/Holidays/Driver.php
View
@@ -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,

0 comments on commit a8e5b86

Please sign in to comment.