summaryrefslogtreecommitdiff
path: root/auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'auth.php')
-rw-r--r--auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth.php b/auth.php
index ccb2859..6a62130 100644
--- a/auth.php
+++ b/auth.php
@@ -15,7 +15,7 @@ if ($lockfile === FALSE) die("Cannot open lock file\n");
if (!flock($lockfile, LOCK_EX)) die("Cannot acquire exclisive lock\n");
$options = getopt("c:");
-$config = load_config(@$options['c']);
+if (isset($options['c'])) $config = load_config($options['c']); else $config = new stdClass();
$config_default = load_config(__DIR__.'/config_default.json');
foreach($config_default as $k => $v) if (!isset($config->{$k})) $config->{$k} = $v;