Fixed check for port number (cannot be 0).

This commit is contained in:
Boris Gulay
2016-05-21 01:02:28 +03:00
parent 6705312240
commit be4d05817d

View File

@@ -200,7 +200,7 @@ class ident_switch extends rcube_plugin
$rc->output->show_message('err.port.num', 'error');
else
{
if ($fPort && ($fPort < 0 || $fPort > 65535))
if ($fPort && ($fPort <= 0 || $fPort > 65535))
$rc->output->show_message('err.port.num', 'error');
else
{