Fixes #111
This commit is contained in:
parent
6653da8ee4
commit
f613a8d884
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ require_once 'classes/poll.php';
|
||||||
$startTime = time();
|
$startTime = time();
|
||||||
$pollsProcessed = 0;
|
$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/');
|
define('DATA_FOLDER', $path . '../data/');
|
||||||
$dataDirHandler = opendir(DATA_FOLDER);
|
$dataDirHandler = opendir(DATA_FOLDER);
|
||||||
|
|
Loading…
Reference in a new issue