code beautification and better documentation

This commit is contained in:
Michael Kaufmann (d00p)
2014-09-06 08:06:33 +02:00
parent ed6c78dd50
commit c5c2f735cc

View File

@@ -342,9 +342,8 @@ while ($row = $result_tasks_stmt->fetch(PDO::FETCH_ASSOC)) {
$usedquota = getFilesystemQuota(); $usedquota = getFilesystemQuota();
// Fixed: PHP Notice: Undefined offset // Check whether we really have entries to check
if(is_array($usedquota) && count($usedquota) > 0) 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)) {