Skip to content
Snippets Groups Projects
Commit 46d59f30 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #7712 remove todo

parent fd7db88c
No related branches found
No related tags found
No related merge requests found
......@@ -64,10 +64,9 @@ abstract class NotificationScheduleModelAbstract
$aArgs['setHiddenValue'] = true;
}
$crontab = shell_exec('crontab -l');
// TODO check crontab is installed
$lines = explode("\n", $crontab);
$data = [];
$crontab = shell_exec('crontab -l');
$lines = explode("\n", $crontab);
$data = [];
$customId = CoreConfigModel::getCustomId();
$corePath = str_replace('custom/'.$customId.'/src/app/notification/models', '', __DIR__);
$corePath = str_replace('src/app/notification/models', '', $corePath);
......@@ -82,8 +81,8 @@ abstract class NotificationScheduleModelAbstract
}
$cronLine = preg_replace('![ \t]+!', ' ', $cronLine);
if ($cronLine[0] == '@') {
// TODO $time not used
list($time, $cmd) = explode(' ', $cronLine, 2);
$explodeCronLine = explode(' ', $cronLine, 2);
$cmd = $explodeCronLine[1];
} else {
list($m, $h, $dom, $mon, $dow, $cmd) = explode(' ', $cronLine, 6);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment