From b460a872f39aa656930cc109ed4046ebd1cd9f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1ndor?= Date: Fri, 28 May 2021 09:19:15 +0200 Subject: [PATCH] bugfix --- record.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/record.php b/record.php index ac9c175..b302897 100644 --- a/record.php +++ b/record.php @@ -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);