minor changes (to avoid PHP notices, warnings etc.)

This commit is contained in:
tomash 2006-05-29 09:25:21 +00:00
parent 1b4b09642b
commit d660936fac
2 changed files with 8 additions and 11 deletions

View file

@ -205,4 +205,4 @@ class Cron {
return $this->cronfile.' "'.str_replace('"','\"',serialize($this->params)).'"';
}
}
?>
?>

View file

@ -7,11 +7,11 @@
* This class lets you manipulate the crontab. It lets you add delete update entries easily.
**/
define(CRON_COMMENT, 0);
define(CRON_ASSIGN, 1);
define(CRON_CMD, 2);
define(CRON_SPECIAL, 3);
define(CRON_EMPTY, 4);
define('CRON_COMMENT', 0);
define('CRON_ASSIGN', 1);
define('CRON_CMD', 2);
define('CRON_SPECIAL', 3);
define('CRON_EMPTY', 4);
class Crontab
{
@ -135,7 +135,7 @@ class Crontab
case CRON_SPECIAL :
$line = implode(" ", $this->crontabs[$i]);
break;
CASE CRON_EMPTYLINE :
case CRON_EMPTY :
$line = "\n"; // an empty line in the crontab-file
break;
default :
@ -257,7 +257,4 @@ class Crontab
return $returnar;
}
}
?>
?>