openvpn: small issue in style #2440

This commit is contained in:
Franco Fichtner 2018-06-06 20:25:39 +00:00
parent 4e1cddf3bb
commit 47bb783c26
2 changed files with 10 additions and 6 deletions

View File

@ -362,9 +362,11 @@ legacy_html_escape_form_data($pconfig);
include("head.inc");
$main_buttons = array(
array('href' => 'vpn_openvpn_client.php?act=new', 'label' => gettext('Add')),
);
$main_buttons = array();
if (empty($act)) {
$main_buttons[] = array('href' => 'vpn_openvpn_client.php?act=new', 'label' => gettext('Add'));
}
?>

View File

@ -419,9 +419,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
include("head.inc");
$main_buttons = array(
array('href' => 'vpn_openvpn_server.php?act=new', 'label' => gettext('Add')),
);
$main_buttons = array();
if (empty($act)) {
$main_buttons[] = array('href' => 'vpn_openvpn_server.php?act=new', 'label' => gettext('Add'));
}
legacy_html_escape_form_data($pconfig);