Ken il y a 3 jours
Parent
commit
6b9ffe7811
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/Models/Config.php

+ 1 - 1
app/Models/Config.php

@@ -26,7 +26,7 @@ class Config extends BaseModel
         $pc28_switch = Cache::get('pc28_switch');
         $val = static::where('field', 'pc28_switch')->first()->val;
         if ($pc28_switch == null) $pc28_switch = $val;
-        if ($pc28_switch != $val) {
+        if ($pc28_switch !== $val) {
             static::where('field', 'pc28_switch')->update(['val' => $pc28_switch]);
             $lang = App::getLocale();
             $group_language = static::where('field', 'group_language')->first()->val;