fixing missing quota name in quota editor

This commit is contained in:
Benjamin Sonntag 2012-08-26 13:35:18 +00:00
parent de6f7a4e98
commit 7882d18017
1 changed files with 6 additions and 1 deletions

View File

@ -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;