Fix SSL option setting
authorJamie Cameron <jcameron@webmin.com>
Tue, 22 Dec 2009 19:58:18 +0000 (11:58 -0800)
committerJamie Cameron <jcameron@webmin.com>
Tue, 22 Dec 2009 19:58:18 +0000 (11:58 -0800)
dovecot/edit_net.cgi

index 216cd54..16cd6c3 100755 (executable)
@@ -18,7 +18,12 @@ print &ui_table_row($text{'net_protocols'},
 # SSL supported?
 $sslopt = &find("ssl_disable", $conf, 2) ? "ssl_disable" : "ssl";
 $dis = &find_value($sslopt, $conf);
-@opts = ( [ "no", $text{'yes'} ], [ "yes", $text{'no'} ] );
+if ($sslopt eq "ssl") {
+       @opts = ( [ "yes", $text{'yes'} ], [ "no", $text{'no'} ] );
+       }
+else {
+       @opts = ( [ "no", $text{'yes'} ], [ "yes", $text{'no'} ] );
+       }
 print &ui_table_row($text{'net_ssl_disable'},
            &ui_radio($sslopt, $dis,
                      [ @opts,