Skip to content

Commit a910e4d

Browse files
author
Till Brehm
committed
Merge branch '6855-quota-notify' into 'develop'
Update 300-quota_notify.inc.php Closes #6855 See merge request ispconfig/ispconfig3!2007
2 parents 94e83c1 + b683e4b commit a910e4d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

server/lib/classes/cron.d/300-quota_notify.inc.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ public function onRunJob() {
184184
$domain = $rec['domain'];
185185

186186
$username = $rec['system_user'];
187-
$rec['used'] = @$monitor_data['user'][$username]['used'];
188-
$rec['soft'] = @$monitor_data['user'][$username]['soft'];
189-
$rec['hard'] = @$monitor_data['user'][$username]['hard'];
190-
$rec['files'] = @$monitor_data['user'][$username]['files'];
187+
$rec['used'] = isset($monitor_data['user'][$username]['used']) ? $monitor_data['user'][$username]['used'] : 0;
188+
$rec['soft'] = isset($monitor_data['user'][$username]['soft']) ? $monitor_data['user'][$username]['soft'] : 0;
189+
$rec['hard'] = isset($monitor_data['user'][$username]['hard']) ? $monitor_data['user'][$username]['hard'] : 0;
190+
$rec['files'] = isset($monitor_data['user'][$username]['files']) ? $monitor_data['user'][$username]['files'] : 0;
191191

192192
if (!is_numeric($rec['used'])){
193193
if ($rec['used'][0] > $rec['used'][1]){
@@ -525,7 +525,7 @@ public function onRunJob() {
525525
$recipients[] = $clients[$rec['sys_groupid']]['reseller'];
526526
}
527527
}
528-
528+
529529
//* Send email to client
530530
if($web_config['overquota_db_notify_client'] == 'y') {
531531
if($clients[$rec['sys_groupid']]['email'] != '') {

0 commit comments

Comments
 (0)