This commit is contained in:
jelhan 2016-08-14 14:41:48 +02:00
parent 6653da8ee4
commit f613a8d884

View file

@ -15,7 +15,7 @@ require_once 'classes/poll.php';
$startTime = time();
$pollsProcessed = 0;
$path = $argv[1] ? $argv[1] : substr($argv[0], 0, -8);
$path = isset($argv[1]) ? $argv[1] : substr($argv[0], 0, -8);
define('DATA_FOLDER', $path . '../data/');
$dataDirHandler = opendir(DATA_FOLDER);