Fixed undefined variable before use.

This commit is contained in:
objecttothis
2023-02-15 00:03:41 +04:00
committed by Steve Ireland
parent 2dd8a62e34
commit 9dc98563e7

View File

@@ -24,6 +24,7 @@ class OSPOSRules
{
$this->employee = model('Employee');
$this->request = Services::request();
$config = config('OSPOS')->settings;
//Installation Check
if(!$this->installation_check())
@@ -42,8 +43,9 @@ class OSPOSRules
return false;
}
//GCaptcha Check
$gcaptcha_enabled = array_key_exists('gcaptcha_enable', config('OSPOS')->settings)
$gcaptcha_enabled = array_key_exists('gcaptcha_enable', $config)
? $config['gcaptcha_enable']
: false;