minor changes (to avoid PHP notices, warnings etc.)
This commit is contained in:
parent
1b4b09642b
commit
d660936fac
2 changed files with 8 additions and 11 deletions
|
@ -205,4 +205,4 @@ class Cron {
|
||||||
return $this->cronfile.' "'.str_replace('"','\"',serialize($this->params)).'"';
|
return $this->cronfile.' "'.str_replace('"','\"',serialize($this->params)).'"';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -7,11 +7,11 @@
|
||||||
* This class lets you manipulate the crontab. It lets you add delete update entries easily.
|
* This class lets you manipulate the crontab. It lets you add delete update entries easily.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
define(CRON_COMMENT, 0);
|
define('CRON_COMMENT', 0);
|
||||||
define(CRON_ASSIGN, 1);
|
define('CRON_ASSIGN', 1);
|
||||||
define(CRON_CMD, 2);
|
define('CRON_CMD', 2);
|
||||||
define(CRON_SPECIAL, 3);
|
define('CRON_SPECIAL', 3);
|
||||||
define(CRON_EMPTY, 4);
|
define('CRON_EMPTY', 4);
|
||||||
|
|
||||||
class Crontab
|
class Crontab
|
||||||
{
|
{
|
||||||
|
@ -135,7 +135,7 @@ class Crontab
|
||||||
case CRON_SPECIAL :
|
case CRON_SPECIAL :
|
||||||
$line = implode(" ", $this->crontabs[$i]);
|
$line = implode(" ", $this->crontabs[$i]);
|
||||||
break;
|
break;
|
||||||
CASE CRON_EMPTYLINE :
|
case CRON_EMPTY :
|
||||||
$line = "\n"; // an empty line in the crontab-file
|
$line = "\n"; // an empty line in the crontab-file
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
|
@ -257,7 +257,4 @@ class Crontab
|
||||||
return $returnar;
|
return $returnar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue