Index: typo3/sysext/scheduler/class.tx_scheduler_croncmd.php =================================================================== --- typo3/sysext/scheduler/class.tx_scheduler_croncmd.php (revision 6744) +++ typo3/sysext/scheduler/class.tx_scheduler_croncmd.php (working copy) @@ -190,7 +193,14 @@ $validDays = $this->getList($this->cmd_sections[2], 1, $max_days); // Consider special field 'day of week' - if ($this->cmd_sections[2] != '*' && (strpos($this->cmd_sections[4], '*') === false && preg_match('/[1-7]{1}/', $this->cmd_sections[4]) !== false)) { + // @TODO: Implement lists and ranges for day of week (2,3 and 1-5 and */2,3 and 1,1-5/2) + if ((strpos($this->cmd_sections[4], '*') === false && preg_match('/[1-7]{1}/', $this->cmd_sections[4]) !== false)) { + // Unset days from 'day of month' if * is given + // * * * * 1 results to every monday of this month + // * * 1,2 * 1 results to every monday, plus first and second day of month + if ($this->cmd_sections[2] == '*') { + $validDays = array(); + } // Get list for ($i = 1; $i <= $max_days; $i++) { if (strftime('%u', mktime(0, 0, 0, $currentMonth, $i, $currentYear)) == $this->cmd_sections[4]) {