fixed issue when no quotas are found
This commit is contained in:
parent
07f5ae2d7a
commit
8b38839dae
|
@ -599,6 +599,9 @@ class quota extends baseModule {
|
||||||
}
|
}
|
||||||
$dirs = explode(":", $quotas);
|
$dirs = explode(":", $quotas);
|
||||||
array_pop($dirs); // remove empty element at the end
|
array_pop($dirs); // remove empty element at the end
|
||||||
|
if (empty($dirs)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
for ($i = 0; $i < sizeof($dirs); $i++) {
|
for ($i = 0; $i < sizeof($dirs); $i++) {
|
||||||
if (strpos($dirs[$i], self::$QUOTA_PREFIX) !== 0) {
|
if (strpos($dirs[$i], self::$QUOTA_PREFIX) !== 0) {
|
||||||
unset($dirs[$i]);
|
unset($dirs[$i]);
|
||||||
|
|
Loading…
Reference in New Issue