|
@@ -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;
|
|
|
}
|
|
|
|