Check isset mailman dans l'affichage des quotas, en attendant d'avoir des hooks

This commit is contained in:
Alan Garcia 2012-08-26 16:18:05 +00:00
parent 1faef827b6
commit a3d9ed303b
1 changed files with 3 additions and 0 deletions

View File

@ -255,11 +255,14 @@ foreach ($membres_list as $c) {
foreach ($maildomains_list as $md) { foreach ($maildomains_list as $md) {
$mc += $md['nb_mail']; $mc += $md['nb_mail'];
} }
if (isset($mailman)) {
// Mailman List Count // Mailman List Count
$mlc = $mailman->count_ml_user($c["uid"]); $mlc = $mailman->count_ml_user($c["uid"]);
echo "</td><td>$dc</td><td>$mc</td><td>$mlc</td><td"; echo "</td><td>$dc</td><td>$mc</td><td>$mlc</td><td";
if ($mode!=2) echo " style=\"text-align: right\""; if ($mode!=2) echo " style=\"text-align: right\"";
echo ">"; echo ">";
} // isset mailman
// Espace WEB // Espace WEB
$ws = $quota->get_size_web_sum_user($c["uid"]); $ws = $quota->get_size_web_sum_user($c["uid"]);