fixed get setting

pull/22/head
A1Gard 1 year ago
parent f9b13d7845
commit e67bd222a7

@ -14,7 +14,7 @@ use Illuminate\Support\Facades\Route;
function getSetting($key) function getSetting($key)
{ {
if (!\Schema::hasTable('settings')){ if ( !isset($_SERVER['SERVER_NAME']) || !\Schema::hasTable('settings')){
return false; return false;
} }
$x = Setting::where('key', $key)->first(); $x = Setting::where('key', $key)->first();

Loading…
Cancel
Save