Browse Source

Restrict comparison to null value only

Bubka 3 years ago
parent
commit
025cfc5e58
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Api/v1/Controllers/SettingController.php

+ 1 - 1
app/Api/v1/Controllers/SettingController.php

@@ -67,7 +67,7 @@ class SettingController extends Controller
     {
         $setting = $this->settingService->get($settingName);
 
-        if (!$setting) {
+        if (is_null($setting)) {
             abort(404);
         }