Fix: video convert with cron if nothing to convert

This commit is contained in:
ASponch 2018-06-04 09:41:20 +02:00
parent a4b7b4d83f
commit f67fb9bff2

View file

@ -16,6 +16,14 @@
$argv = convertWithCron();
}
/**
* If array index 1 and 3 is empty so the file is
* written anyway (with empty data in files/log/.log)
*/
if ( (empty($argv[1])) and (empty($argv[3])) ){
die();
}
//error_reporting(E_ALL);
#file_put_contents('__argv__', $argv[1]."\n".$argv[2]."\n".$argv[3]."\n".$argv[4]."\n");
logData(json_encode($argv),"argvs");