mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-13 11:28:26 -04:00
Fixed undefined variable before use.
This commit is contained in:
committed by
Steve Ireland
parent
2dd8a62e34
commit
9dc98563e7
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user