From bb9331904efa80cae5563f8e57aa1614236c9f4a Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Tue, 10 May 2016 11:55:03 +0200 Subject: [PATCH] (really) fix PHP notice #2048 Only variables should be passed by reference, thx to baudetail Signed-off-by: Michael Kaufmann (d00p) --- admin_customers.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin_customers.php b/admin_customers.php index dd7add11..0c96941c 100644 --- a/admin_customers.php +++ b/admin_customers.php @@ -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,