Browse Source

fixed issue when no quotas are found

pull/94/head
Roland Gruber 3 years ago
parent
commit
8b38839dae
  1. 3
      lam/lib/modules/quota.inc

3
lam/lib/modules/quota.inc

@ -599,6 +599,9 @@ class quota extends baseModule {
}
$dirs = explode(":", $quotas);
array_pop($dirs); // remove empty element at the end
if (empty($dirs)) {
continue;
}
for ($i = 0; $i < sizeof($dirs); $i++) {
if (strpos($dirs[$i], self::$QUOTA_PREFIX) !== 0) {
unset($dirs[$i]);

Loading…
Cancel
Save