stanley-king 3 роки тому
батько
коміт
4ed9cf4faf
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      helper/refill/policy/mratio_control.php

+ 2 - 2
helper/refill/policy/mratio_control.php

@@ -314,11 +314,11 @@ class mratio_control
         if(array_key_exists($mchid,$mintercepts))
         {
             $mintercepts = $mintercepts[$mchid];
-            if(in_array($card_state,$mintercepts['card_states'],true)) {
+            if(!empty($mintercepts['card_states']) && in_array($card_state,$mintercepts['card_states'],true)) {
                 return true;
             }
 
-            if(in_array($card_type,$mintercepts['card_types'],true)) {
+            if(!empty($mintercepts['card_types']) && in_array($card_type,$mintercepts['card_types'],true)) {
                 return true;
             }