Skip to content

Commit

Permalink
Prevent passed by reference notice on newer php
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolás committed Oct 4, 2023
1 parent 2710bc4 commit 1dcbd1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup/usr/share/issabel/privileged/netconfig
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ function setHostname($sHostname)
if ($bClavePresente) file_put_contents('/etc/hosts', $contenidoNuevo);

// Figure out a domain for the hostname
$sDomain = array_pop(explode('.', $sHostname, 2));
$partes = explode('.', $sHostname, 2);
$sDomain = array_pop($partes);

// Set the hostname for the current session
exec("/bin/hostname $sHostname");
Expand Down

0 comments on commit 1dcbd1a

Please sign in to comment.