stanley-king 4 vuotta sitten
vanhempi
commit
f18d00e465
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      helper/refill/RefillBase.php

+ 4 - 0
helper/refill/RefillBase.php

@@ -405,6 +405,10 @@ class RefillBase
 
         $chname = $refill_info['channel_name'];
         $provider = $this->mPolicy->provider($chname);
+        if(empty($provider)) {
+            Log::record(__FUNCTION__ . " provider is null",Log::DEBUG);
+            return false;
+        }
         [$state, $order_state] = $provider->query($refill_info);
 
         if(!$state) {