makeGatewayParams: fix missing 'new' in throwing
[racktables] / wwwroot / inc / remote.php
index 7bf76db90ffe8f49a3f5391f3cfc45822474a336..7c0338f7b97a1a91aaa7c1f7d0d73e8d17898880 100644 (file)
@@ -323,7 +323,7 @@ function makeGatewayParams ($object_id, $tolerate_remote_errors, /*array(&)*/$re
                        $params_from_settings[] = $settings['hostname'];
                        break;
                default:
                        $params_from_settings[] = $settings['hostname'];
                        break;
                default:
-                       throw RTGatewayError ("Invalid terminal protocol '${settings['protocol']}' specified");
+                       throw new RTGatewayError ("Invalid terminal protocol '${settings['protocol']}' specified");
        }
 
        foreach ($params_from_settings as $param_name => $setting_name)
        }
 
        foreach ($params_from_settings as $param_name => $setting_name)