From e67bd222a7c00b3f58765f1622b3a720fdb295f3 Mon Sep 17 00:00:00 2001 From: A1Gard Date: Fri, 7 Jul 2023 06:38:57 +0330 Subject: [PATCH] fixed get setting --- app/Helpers/Helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php index 1c52273..f6e531d 100755 --- a/app/Helpers/Helper.php +++ b/app/Helpers/Helper.php @@ -14,7 +14,7 @@ use Illuminate\Support\Facades\Route; function getSetting($key) { - if (!\Schema::hasTable('settings')){ + if ( !isset($_SERVER['SERVER_NAME']) || !\Schema::hasTable('settings')){ return false; } $x = Setting::where('key', $key)->first();