#2366 Crontab class bug
This commit is contained in:
parent
658374a14c
commit
ce0ee8dfb6
|
@ -127,7 +127,7 @@ class Crontab
|
||||||
$filename = ($DEBUG ? tempnam("$PATH/crons", "cron") : tempnam("/tmp", "cron"));
|
$filename = ($DEBUG ? tempnam("$PATH/crons", "cron") : tempnam("/tmp", "cron"));
|
||||||
$file = fopen($filename, "w");
|
$file = fopen($filename, "w");
|
||||||
|
|
||||||
for ($i = 0; $i < count($this->linetypes); $i ++) {
|
foreach($this->linetypes as $i => $line) {
|
||||||
switch ($this->linetypes[$i]) {
|
switch ($this->linetypes[$i]) {
|
||||||
case CRON_COMMENT:
|
case CRON_COMMENT:
|
||||||
$line = $this->crontabs[$i];
|
$line = $this->crontabs[$i];
|
||||||
|
|
Loading…
Reference in New Issue