fix for bug #911628: Intall Cron Job Multiple Domain Error

This commit is contained in:
Ralf Becker 2004-03-14 18:41:35 +00:00
parent 06b80fa3bf
commit 0e943f4c58

View File

@ -661,11 +661,12 @@
{ {
foreach ($this->other_cronlines as $cronline) foreach ($this->other_cronlines as $cronline)
{ {
fwrite($crontab,$cronline); // preserv the other lines fwrite($crontab,$cronline); // preserv the other lines on install
} }
if ($times !== False) if ($times !== False)
{ {
$cron_units = array('min','hour','day','month','dow'); $cron_units = array('min','hour','day','month','dow');
$cronline = '';
foreach($cron_units as $cu) foreach($cron_units as $cu)
{ {
$cronline .= (isset($times[$cu]) ? $times[$cu] : '*') . ' '; $cronline .= (isset($times[$cu]) ? $times[$cu] : '*') . ' ';