Browse Source

bugfix

master
Sándor 6 months ago
parent
commit
b460a872f3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      record.php

+ 2
- 2
record.php View File

@ -41,8 +41,8 @@ if (!function_exists('json_decode'))
logger(1, 'json_decode is required but not available', 1, true);
// Settings
$config = isset($opts['c']) ? $opts['c'] : __DIR__.'/config.json');
if (!file_exists($config)
$config = isset($opts['c']) ? $opts['c'] : __DIR__.'/config.json';
if (!file_exists($config))
logger(1, 'Config file not found: '.$config, 1, true);
if (!$_set = @json_decode(@file_get_contents(__DIR__.'/config.json')))
logger(1, 'Unable to load or parse configuration file', 1, true);


Loading…
Cancel
Save