makeGatewayParams: fix missing 'new' in throwing
authorAlexey Andriyanov <alan@al-an.info>
Mon, 15 Apr 2013 08:22:19 +0000 (12:22 +0400)
committerAlexey Andriyanov <alan@al-an.info>
Mon, 15 Apr 2013 08:22:19 +0000 (12:22 +0400)
ChangeLog
wwwroot/inc/remote.php

index 6615728232014eca66660239584e5e28779df3d1..c50e2e042d4c6a48a3f1281ca690afb30fb97c0e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+0.20.5
+       bugfix: 500 server error if protocol was not specified in
+               terminal_settings subroutine
 0.20.4 2013-04-15
        bugfix: %GPASS% dictionary markers were ignored in selectboxes
        bugfix: 802.1Q: better Force10 switches support
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:
-                       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)