setting changed 2
This commit is contained in:
@@ -152,7 +152,13 @@ class Controller extends BaseController
|
||||
}
|
||||
public static function Config($name)
|
||||
{
|
||||
return Setting::where('key',$name)->first()->value ?? false;
|
||||
$row = Setting::where('key', $name)->first();
|
||||
|
||||
if ($row && $row->is_active && $row->value !== null && $row->value !== '') {
|
||||
return $row->value;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
protected static function metalTypeSettingValue(): ?string
|
||||
|
||||
Reference in New Issue
Block a user