diff options
Diffstat (limited to 'auth.php')
| -rw-r--r-- | auth.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
