File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
server/lib/classes/cron.d Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 ' ] != '' ) {
You can’t perform that action at this time.
0 commit comments