Ken 1 deň pred
rodič
commit
2f76a14afa
1 zmenil súbory, kde vykonal 1 pridanie a 3 odobranie
  1. 1 3
      app/Models/Config.php

+ 1 - 3
app/Models/Config.php

@@ -21,10 +21,8 @@ class Config extends BaseModel
 
     public static function setPc28Switch()
     {
-
-        $pc28_switch = Cache::get('pc28_switch', null);
+        $pc28_switch = Cache::get('pc28_switch');
         if ($pc28_switch == null) $pc28_switch = static::where('field', 'pc28_switch')->first()->val;
         static::where('field', 'pc28_switch')->update(['val' => $pc28_switch]);
-
     }
 }