[BUGFIX] Unit test checkDateWithInvalidDateValues fails with PHP warning
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / class.tx_scheduler_module.php
index 635128e..205d74f 100644 (file)
@@ -1452,7 +1452,7 @@ class tx_scheduler_Module extends t3lib_SCbase {
                                list($hour, $minutes) = t3lib_div::trimExplode(':', $time, TRUE);
                                list($day, $month, $year) = t3lib_div::trimExplode('-', $date, TRUE);
                                        // Get a timestamp from all these parts
-                               $timestamp = mktime($hour, $minutes, 0, $month, $day, $year);
+                               $timestamp = @mktime($hour, $minutes, 0, $month, $day, $year);
                        }
                                // If the timestamp is still FALSE, throw an exception
                        if ($timestamp === FALSE) {