From 9a8d3900657b90ddb24893f9c19d86e3368b8d67 Mon Sep 17 00:00:00 2001 From: Ryan Nolan Date: Tue, 15 Sep 2020 17:50:59 +0100 Subject: [PATCH] Updated deprecated create_function() Updated deprecated create_function() in YouHosting Module --- src/bb-modules/Serviceyouhosting/Api/Guest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bb-modules/Serviceyouhosting/Api/Guest.php b/src/bb-modules/Serviceyouhosting/Api/Guest.php index 3116b1daa..d6e887faa 100644 --- a/src/bb-modules/Serviceyouhosting/Api/Guest.php +++ b/src/bb-modules/Serviceyouhosting/Api/Guest.php @@ -32,7 +32,9 @@ class Guest extends \Api_Abstract if (isset($config['yh_ips'])) { $allowed_ips = explode(PHP_EOL, $config['yh_ips']); - array_walk($allowed_ips, create_function('&$val', '$val = trim($val);')); + array_walk($allowed_ips, function(&$val){ + $val = trim($val); + }); } else { $allowed_ips = array( '212.1.209.2',