Ken пре 1 дан
родитељ
комит
2f76a14afa
1 измењених фајлова са 1 додато и 3 уклоњено
  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]);
-
     }
 }