Skip to content

Commit 7eade0d

Browse files
author
Florian Schaal
committed
avoid the second use of query in install.php
1 parent 14dff26 commit 7eade0d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install/install.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,11 @@
172172
$tmp_out = array();
173173
exec('hostname -f', $tmp_out);
174174
$conf['hostname'] = $inst->free_query('Full qualified hostname (FQDN) of the server, eg server1.domain.tld ', @$tmp_out[0],'hostname');
175-
unset($tmp_out);
176175

177176
//** Prevent empty hostname
178-
$conf['hostname']=trim($conf['hostname']);
177+
$conf['hostname']=trim(@$tmp_out[0]);
178+
unset($tmp_out);
179+
179180
if($conf['hostname'] === '') {
180181
$check = false;
181182
do {

0 commit comments

Comments
 (0)