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);
|
$info = ldap_get_entries($ldapconngetgroup, $sr);
|
||||||
if ($info['count']) {
|
if ($info['count']) {
|
||||||
$result = $info[0]['dn'];
|
$result = $info[0]['dn'];
|
||||||
list ($foo,$mydomain,$foo2) = split(',',$result);
|
list ($foo,$mydomain,$foo2) = explode(',',$result);
|
||||||
list ($foo,$group) = split('=',$mydomain);
|
list ($foo,$group) = explode('=',$mydomain);
|
||||||
return $group;
|
return $group;
|
||||||
} else {
|
} else {
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -41,7 +41,7 @@ global $conf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
list ($now,$limit) = split("/",$quota);
|
list ($now,$limit) = explode("/",$quota);
|
||||||
$now = $now / 1024;
|
$now = $now / 1024;
|
||||||
$limit = $limit / 1024;
|
$limit = $limit / 1024;
|
||||||
$quota = "<b>" . Math::arrondi($now). "M</b>/" .Math::arrondi($limit). "M";
|
$quota = "<b>" . Math::arrondi($now). "M</b>/" .Math::arrondi($limit). "M";
|
||||||
|
|
Loading…
Reference in a new issue