From c5c2f735ccb26d0fe8b53d4cb1f7d40c25943645 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Sat, 6 Sep 2014 08:06:33 +0200 Subject: [PATCH] code beautification and better documentation --- scripts/jobs/cron_tasks.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/jobs/cron_tasks.php b/scripts/jobs/cron_tasks.php index 3f9e7ded..dc46a23d 100644 --- a/scripts/jobs/cron_tasks.php +++ b/scripts/jobs/cron_tasks.php @@ -342,9 +342,8 @@ while ($row = $result_tasks_stmt->fetch(PDO::FETCH_ASSOC)) { $usedquota = getFilesystemQuota(); - // Fixed: PHP Notice: Undefined offset - if(is_array($usedquota) && count($usedquota) > 0) - { + // Check whether we really have entries to check + if (is_array($usedquota) && count($usedquota) > 0) { // Select all customers Froxlor knows about $result_stmt = Database::query("SELECT `guid`, `loginname`, `diskspace` FROM `" . TABLE_PANEL_CUSTOMERS . "`;"); while ($row = $result_stmt->fetch(PDO::FETCH_ASSOC)) {