(really) fix PHP notice #2048 Only variables should be passed by reference, thx to baudetail

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p) 2016-05-10 11:55:03 +02:00
parent 6369e160b8
commit bb9331904e

View File

@ -940,7 +940,8 @@ if ($page == 'customers'
WHERE `id` = :defaultip
");
$default_ips = Settings::Get('system.defaultip');
$srv_ip = Database::pexecute_first($srv_ip_stmt, array('defaultip' => reset(explode(',', $default_ips))));
$default_ips = explode(',', $default_ips);
$srv_ip = Database::pexecute_first($srv_ip_stmt, array('defaultip' => reset($default_ips)));
$replace_arr = array(
'FIRSTNAME' => $firstname,