Updated deprecated create_function()

Updated deprecated create_function() in YouHosting Module
This commit is contained in:
Ryan Nolan committed 2020-09-15 17:50:59 +01:00
1 parent 5b1024e98d
commit 9a8d390065
1 file changed
+3 -1
@@ -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',