More improvements in Italian translation.
[timetracker.git] / WEB-INF / lib / ttTimeHelper.class.php
index 6b1efe0..f5c3e93 100644 (file)
@@ -39,7 +39,11 @@ class ttTimeHelper {
 
   // isHoliday determines if $date falls on a holiday.
   static function isHoliday($date) {
+    global $user;
     global $i18n;
+
+    if (!$user->show_holidays) return false;
+
     // $date is expected as string in DB_DATEFORMAT.
     $month = date('m', strtotime($date));
     $day = date('d', strtotime($date));