Bugfix: Undefined index when awstats module have been removed

This commit is contained in:
Axel ROGER 2012-08-29 13:18:27 +00:00
parent bcbc8e05bb
commit 2d698668a5
2 changed files with 5 additions and 2 deletions

View File

@ -95,12 +95,13 @@ foreach($qlist as $type => $q) {
<tr><th><?php __("Quotas") ?></th><th><?php __("Default Value"); ?></th></tr>
<?php
foreach($q as $name => $value) {
if (!isset($qarray[$name])) continue;
$key = $type . ":" . $name;
$col=3-$col;
?>
<tr class="lst<?php echo $col; ?>">
<td><label for="<?php echo $key; ?>"><?php $name= ($name=="stats")? 'sta2': $name ;echo $qarray[$name]= ($qarray[$name]=="quota_sta2") ? 'quota_stats': $qarray[$name] ; ?></label></td>
<td><label for="<?php echo $key; ?>"><?php echo $qarray[$name] ; ?></label></td>
<td><input type="text" class="int" size="16" maxlength="16" name="<?php echo $key; ?>" id="<?php echo $name; ?>" value="<?php ehe($value); ?>" /></td></tr>
<?php

View File

@ -76,8 +76,10 @@ class m_quota {
}
foreach($this->getquota() as $qq) {
if (isset($qq['name'])) {
$qlist[$qq['name']]=$qq['description'];
}
}
return $qlist;
}