Skip to content

Commit 322bd51

Browse files
author
Till Brehm
committed
Update quota_lib.inc.php
1 parent 5f47687 commit 322bd51

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

interface/lib/classes/quota_lib.inc.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,13 @@ public function get_mailquota_data($clientid = null, $readable = true, $email =
236236
}
237237
//print_r($monitor_data);
238238

239-
if ($email) {
240-
return $monitor_data[$email];
239+
if ($email !== null && !empty($email)) {
240+
if(isset($monitor_data[$email])) {
241+
return $monitor_data[$email];
242+
} else {
243+
return '';
244+
}
245+
241246
}
242247
// select all email accounts or email accounts belonging to client
243248
$emails = $app->db->queryAllRecords("SELECT * FROM mail_user".(($clientid != null)? " WHERE sys_groupid = (SELECT default_group FROM sys_user WHERE client_id=?)" : '') . " ORDER BY email", $clientid);

0 commit comments

Comments
 (0)