fly 4 år sedan
förälder
incheckning
83a5064dce
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/Services/LandingPage/LandingPageLinkService.php

+ 1 - 1
src/Services/LandingPage/LandingPageLinkService.php

@@ -225,7 +225,7 @@ class LandingPageLinkService
                     ->where('report_user_charge_records.type', $params['type']);
             });
         }
-        if (isset($params['status'])) {
+        if (isset($params['status']) && is_numeric($params['status'])) {
             $sql->whereExists(function ($query) use ($params) {
                 $query->select(DB::raw(1))
                     ->from('report_user_charge_records')