fixing missing quota name in quota editor
This commit is contained in:
parent
de6f7a4e98
commit
7882d18017
|
@ -122,8 +122,13 @@ class m_quota {
|
|||
return array("t"=>0, "u"=>0);
|
||||
} else {
|
||||
while ($db->next_record()) {
|
||||
$ttmp[]=$db->Record;
|
||||
$ttmp[$db->f("name")]=$db->Record;
|
||||
}
|
||||
foreach($this->clquota as $k=>$v) {
|
||||
if (!isset($ttmp[$k])) {
|
||||
$ttmp[$k]=array("name" => $k, "t" => 0, "u" => 0);
|
||||
}
|
||||
}
|
||||
// TODO: old hook method FIXME: remove when unused
|
||||
foreach ($ttmp as $tt) {
|
||||
if (! isset( $this->clquota[$tt["name"]] )) continue;
|
||||
|
|
Loading…
Reference in New Issue