Update cron_tasks.php
Fixing: PHP Notice: Undefined offset: if problem: repquota: Einhängepunkt oder Gerät / nicht gefunden oder hat keine aktivierten Quotas. repquota: Nicht alle angegebenen Mountpunkte verwenden Quotas.
This commit is contained in:
@@ -342,6 +342,9 @@ while ($row = $result_tasks_stmt->fetch(PDO::FETCH_ASSOC)) {
|
|||||||
|
|
||||||
$usedquota = getFilesystemQuota();
|
$usedquota = getFilesystemQuota();
|
||||||
|
|
||||||
|
// Fixed: PHP Notice: Undefined offset
|
||||||
|
if(is_array($usedquota) && count($usedquota) > 0)
|
||||||
|
{
|
||||||
// Select all customers Froxlor knows about
|
// Select all customers Froxlor knows about
|
||||||
$result_stmt = Database::query("SELECT `guid`, `loginname`, `diskspace` FROM `" . TABLE_PANEL_CUSTOMERS . "`;");
|
$result_stmt = Database::query("SELECT `guid`, `loginname`, `diskspace` FROM `" . TABLE_PANEL_CUSTOMERS . "`;");
|
||||||
while ($row = $result_stmt->fetch(PDO::FETCH_ASSOC)) {
|
while ($row = $result_stmt->fetch(PDO::FETCH_ASSOC)) {
|
||||||
@@ -372,6 +375,7 @@ while ($row = $result_tasks_stmt->fetch(PDO::FETCH_ASSOC)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($num_results != 0) {
|
if ($num_results != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user