Use explode instead of deprecated split
This commit is contained in:
parent
8788223bf0
commit
061e954d97
|
@ -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;
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue