mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
openvpn: small issue in style #2440
This commit is contained in:
parent
4e1cddf3bb
commit
47bb783c26
@ -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'));
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user