Explorar el Código

lib/gateway.php GLOBAL_GATEWAY_ADDRESS maybe false

walkor hace 10 años
padre
commit
cef6b3613c
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      GatewayWorker/Lib/Gateway.php

+ 4 - 0
GatewayWorker/Lib/Gateway.php

@@ -51,6 +51,10 @@ class Gateway
        else
        {
            $all_addresses = Store::instance('gateway')->get('GLOBAL_GATEWAY_ADDRESS');
+           if(!$all_addresses)
+           {
+               throw new \Exception('GLOBAL_GATEWAY_ADDRESS is ' . var_export($all_addresses, true));
+           }
            foreach($all_addresses as $address)
            {
                self::sendToGateway($address, $gateway_data);