1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-18 03:37:35 +01:00
This commit is contained in:
Savetheinternet 2011-06-07 20:43:15 +10:00
parent e9eb6635b4
commit 65a42e7b3f

View File

@ -50,11 +50,11 @@
if(function_exists('system')) {
$crontab = tempnam($config['tmp'], 'tinyboard-rrdtool');
file_write($crontab, $job);
@system('crontab ' . escapeshellarg($crontab) . '; echo $?', $ret);
@system('crontab ' . escapeshellarg($crontab), $ret);
unlink($crontab);
if($ret === 0)
return; // it seems to install okay?
return ''; // it seems to install okay?
}
return '<h2>I couldn\'t install the crontab!</h2>' .