diff options
Diffstat (limited to 'lib/models/SemesterHoliday.class.php')
| -rw-r--r-- | lib/models/SemesterHoliday.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/SemesterHoliday.class.php b/lib/models/SemesterHoliday.class.php index ee3d2bc..1751537 100644 --- a/lib/models/SemesterHoliday.class.php +++ b/lib/models/SemesterHoliday.class.php @@ -62,7 +62,7 @@ class SemesterHoliday extends SimpleORMap $ret = []; if ($timestamp_start < $timestamp_end) { foreach(self::getAll() as $holiday) { - if ($holiday->beginn >= $timestamp_start && $holiday->ende <= $timestamp_end) { + if ($holiday->beginn >= $timestamp_start && $holiday->ende <= $timestamp_end) { $ret[] = $holiday; } } @@ -92,7 +92,7 @@ class SemesterHoliday extends SimpleORMap { if (!is_array(self::$holiday_cache) || $force_reload) { self::$holiday_cache = []; - foreach(self::findBySql('1 ORDER BY beginn') as $holiday){ + foreach(self::findBySql('1 ORDER BY beginn') as $holiday) { self::$holiday_cache[$holiday->getId()] = $holiday; } } |
