mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Fix bug introduced in #1825 (vmid != instance)
* Fix if-then-else-formatting
This commit is contained in:
@@ -37,16 +37,18 @@ print_optionbar_end();
|
||||
$pagetitle[] = 'Proxmox';
|
||||
$pagetitle[] = $instance;
|
||||
|
||||
if (!isset($vars['vmid'])) {
|
||||
if (!isset($vars['instance'])) {
|
||||
$instance = $pmxcl[0]['app_instance'];
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
$instance = var_get('instance');
|
||||
}
|
||||
|
||||
if (isset($vars['vmid'])) {
|
||||
include("pages/apps/proxmox/vm.inc.php");
|
||||
$pagetitle[] = $vars['vmid'];
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
echo '
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
Reference in New Issue
Block a user