Use explode instead of deprecated split

This commit is contained in:
Victor LABORIE 2017-10-11 13:15:05 +02:00
parent 8788223bf0
commit 061e954d97
2 changed files with 3 additions and 3 deletions

View file

@ -109,8 +109,8 @@ class Ldap {
$info = ldap_get_entries($ldapconngetgroup, $sr);
if ($info['count']) {
$result = $info[0]['dn'];
list ($foo,$mydomain,$foo2) = split(',',$result);
list ($foo,$group) = split('=',$mydomain);
list ($foo,$mydomain,$foo2) = explode(',',$result);
list ($foo,$group) = explode('=',$mydomain);
return $group;
} else {
return -1;

View file

@ -41,7 +41,7 @@ global $conf;
}
}
list ($now,$limit) = split("/",$quota);
list ($now,$limit) = explode("/",$quota);
$now = $now / 1024;
$limit = $limit / 1024;
$quota = "<b>" . Math::arrondi($now). "M</b>/" .Math::arrondi($limit). "M";