From ce0ee8dfb650e13a4522c579935c028f323a8ff1 Mon Sep 17 00:00:00 2001 From: sebastian Date: Wed, 17 Feb 2010 13:56:11 +0000 Subject: [PATCH] #2366 Crontab class bug --- campcaster/src/modules/storageServer/var/cron/Crontab.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/campcaster/src/modules/storageServer/var/cron/Crontab.php b/campcaster/src/modules/storageServer/var/cron/Crontab.php index 756338a37..cfd77bac5 100755 --- a/campcaster/src/modules/storageServer/var/cron/Crontab.php +++ b/campcaster/src/modules/storageServer/var/cron/Crontab.php @@ -127,7 +127,7 @@ class Crontab $filename = ($DEBUG ? tempnam("$PATH/crons", "cron") : tempnam("/tmp", "cron")); $file = fopen($filename, "w"); - for ($i = 0; $i < count($this->linetypes); $i ++) { + foreach($this->linetypes as $i => $line) { switch ($this->linetypes[$i]) { case CRON_COMMENT: $line = $this->crontabs[$i];