Enleve le debug du quota et protege un peu mieux les variables
This commit is contained in:
parent
69ea12831a
commit
f325f3f5e1
|
@ -147,6 +147,8 @@ class m_quota {
|
||||||
while (list($key,$val)=each($this->disk)) {
|
while (list($key,$val)=each($this->disk)) {
|
||||||
$a=array();
|
$a=array();
|
||||||
exec("/usr/lib/alternc/quota_get ".$cuid ,$a);
|
exec("/usr/lib/alternc/quota_get ".$cuid ,$a);
|
||||||
|
$a[0]=intval($a[0]);
|
||||||
|
$a[1]=intval($a[1]);
|
||||||
$this->quotas[$val]=array("name"=>"$val", 'description'=>_("quota_".$val), "t"=>$a[1],"u"=>$a[0]);
|
$this->quotas[$val]=array("name"=>"$val", 'description'=>_("quota_".$val), "t"=>$a[1],"u"=>$a[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -x
|
|
||||||
AWK=/usr/bin/awk
|
AWK=/usr/bin/awk
|
||||||
DF=/bin/df
|
DF=/bin/df
|
||||||
SED=/bin/sed
|
SED=/bin/sed
|
||||||
|
|
Loading…
Reference in New Issue