stanley-king пре 4 година
родитељ
комит
f18d00e465
1 измењених фајлова са 4 додато и 0 уклоњено
  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) {