diff --git a/api/cron.php b/api/cron.php index ca1b40d..b3e6c90 100644 --- a/api/cron.php +++ b/api/cron.php @@ -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);