Skip to content

Commit 724b7e4

Browse files
author
Till Brehm
committed
Fixed #5348 Virtual server config panel showing without active VServer
1 parent 7fa4d92 commit 724b7e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

interface/web/dashboard/dashlets/modules.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ function show() {
4040
$web_servers = $app->db->queryOneRecord("SELECT COUNT(*) as cnt FROM server WHERE web_server = 1 AND active = 1");
4141
if($web_servers['cnt'] == 0) continue;
4242
}
43+
44+
if($mt == 'vm'){
45+
$vserver_servers = $app->db->queryOneRecord("SELECT COUNT(*) as cnt FROM server WHERE vserver_server = 1 AND active = 1");
46+
if($vserver_servers['cnt'] == 0) continue;
47+
}
4348

4449
$module_title = $app->lng($module['title']);
4550
if(function_exists('mb_strlen')) {

0 commit comments

Comments
 (0)