Skip to content

Commit 40ce39d

Browse files
author
Till Brehm
committed
Fixed #5253 Server Config is having an error 500 with ISPConfig Version: 3.1.13p1
1 parent cec0ff1 commit 40ce39d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

interface/web/admin/server_config_edit.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ function onShowEdit() {
8383

8484
function onShowEnd() {
8585
global $app;
86-
87-
$app->tpl->setVar('server_name', $app->functions->htmlentities($app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = ? AND ((SELECT COUNT(*) FROM server) > 1)", $this->id)['server_name']));
86+
87+
$tmp = $app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = ? AND ((SELECT COUNT(*) FROM server) > 1)", $this->id);
88+
$app->tpl->setVar('server_name', $app->functions->htmlentities($tmp['server_name']));
89+
unset($tmp);
8890

8991
parent::onShowEnd();
9092
}

0 commit comments

Comments
 (0)