Skip to content

Commit 8d44fa9

Browse files
committed
Update server/lib/classes/cron.d/100-monitor_hd_quota.inc.php
1 parent 76f4863 commit 8d44fa9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/lib/classes/cron.d/100-monitor_hd_quota.inc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function onRunJob() {
8787

8888
//* ignore the first 5 lines, process the rest
8989
for ($i = 0; $i <= sizeof($df); $i++) {
90-
if ($df[$i] != '') {
90+
if (isset($df[$i]) && $df[$i] != '') {
9191
//* Make a array of the data
9292
$s1 = preg_split('/[\s]+/', $df[$i]);
9393
$s2 = preg_split('/\//', $s1[1]);
@@ -108,7 +108,7 @@ public function onRunJob() {
108108

109109
//* ignore the first 5 lines, process the rest
110110
for ($i = 0; $i <= sizeof($df); $i++) {
111-
if ($df[$i] != '') {
111+
if (isset($df[$i]) && $df[$i] != '') {
112112
//* Make a array of the data
113113
$s1 = preg_split('/[\s]+/', $df[$i]);
114114
$s2 = preg_split('/\//', $s1[1]);
@@ -137,7 +137,7 @@ public function onRunJob() {
137137

138138
//* ignore the first 5 lines, process the rest
139139
for ($i = 5; $i <= sizeof($df); $i++) {
140-
if ($df[$i] != '') {
140+
if (isset($df[$i]) && $df[$i] != '') {
141141
//* Make a array of the data
142142
$s = preg_split('/[\s]+/', $df[$i]);
143143
$username = $s[0];
@@ -165,7 +165,7 @@ public function onRunJob() {
165165

166166
//* ignore the first 5 lines, process the rest
167167
for ($i = 5; $i <= sizeof($df); $i++) {
168-
if ($df[$i] != '') {
168+
if (isset($df[$i]) && $df[$i] != '') {
169169
//* Make a array of the data
170170
$s = preg_split('/[\s]+/', $df[$i]);
171171
$groupname = $s[0];

0 commit comments

Comments
 (0)