From f613a8d88418fc52bb6afe478f950cdf588caff1 Mon Sep 17 00:00:00 2001 From: jelhan Date: Sun, 14 Aug 2016 14:41:48 +0200 Subject: [PATCH] Fixes #111 --- api/cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);