Please find attached YourAdmin/events_manager_rec_poll.php (zipped) updated for php5.3.
The changes made are shown in red and begin around line 161. Note the inclusion of ^ towards the end of first line.
Code:
$testFormat = '^[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2}( [[:digit:]]{2}:[[:digit:]]{2}:[[:digit:]]{2}){0,1}$^';
if (!preg_match($testFormat, $testDate)) {
throw new Exception('recursOn: testDate must be in the format YYYY-MM-DD, not '.$testDate);
}
if (!preg_match($testFormat, $originalDate)) {
throw new Exception('recursOn: originalDate must be in the format YYYY-MM-DD, not '.$originalDate);
}
if ($endDate && !preg_match($testFormat, $endDate)) {
throw new Exception('recursOn: endDate must be in the format YYYY-MM-DD, not '.$endDate);
}
If this does not work, or is incorrectly coded, please advise.
Bookmarks