From 2d698668a5f1ac6a3ca7d2e48b7c625478980e40 Mon Sep 17 00:00:00 2001 From: Axel ROGER Date: Wed, 29 Aug 2012 13:18:27 +0000 Subject: [PATCH] Bugfix: Undefined index when awstats module have been removed --- bureau/admin/adm_defquotas.php | 3 ++- bureau/class/m_quota.php | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bureau/admin/adm_defquotas.php b/bureau/admin/adm_defquotas.php index f96223a0..ad0ff2ca 100644 --- a/bureau/admin/adm_defquotas.php +++ b/bureau/admin/adm_defquotas.php @@ -95,12 +95,13 @@ foreach($qlist as $type => $q) { $value) { + if (!isset($qarray[$name])) continue; $key = $type . ":" . $name; $col=3-$col; ?> - + getquota() as $qq) { - $qlist[$qq['name']]=$qq['description']; + if (isset($qq['name'])) { + $qlist[$qq['name']]=$qq['description']; + } } return $qlist; }