Make the cron script silent if there is nothing to do

This commit is contained in:
Steven Mondji-Lerider 2013-07-31 11:43:35 +00:00
parent e48bed562e
commit 9a6c334178
1 changed files with 0 additions and 2 deletions

View File

@ -76,7 +76,6 @@ if (file_exists($LOCK_FILE) !== false){
unlink($LOCK_FILE);
// Lock with the current script's PID
d("Lock the script...");
if (file_put_contents($LOCK_FILE,$MY_PID) === false){
$error_raise.="Cannot open/write $LOCK_FILE\n";
mail_it();
@ -184,7 +183,6 @@ if($error_raise !== '')
mail_it();
// Unlock the script
d("Unlock the script...");
unlink($LOCK_FILE);
// Exit this script