mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-21 20:34:57 +09:00
Updated deprecated create_function()
Updated deprecated create_function() in YouHosting Module
This commit is contained in:
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',
|
||||
|
||||
Reference in new issue
Block a user