fix lint errors

This commit is contained in:
Tobias Sekan 2020-05-06 12:11:54 +02:00 committed by GitHub
parent 5fb852b588
commit 3de77cff3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,12 +157,12 @@ function getPieChart($socid = 0)
$vals[$row[1]] = $row[0];
$total += $row[0];
}
$i++;
}
$db->free($resql);
$result = '<div class="div-table-responsive-no-min">';
$result .= '<table class="noborder nohover centpercent">';
$result .= '<tr class="liste_titre">';
@ -215,7 +215,7 @@ function getPieChart($socid = 0)
/**
* Return a HTML table that contains a list with customer invoice drafts
*
*
* @param int $maxCount (Optional) The maximum count of elements inside the table
* @param int $socid (Optional) Show only results from the customer with this id
* @return string A HTML table that contains a list with customer invoice drafts
@ -311,11 +311,11 @@ function getDraftTable($maxCount = 500, $socid = 0)
}
/**
* Return a HTML table that contains a list with latest edited customer invoices
* Return a HTML table that contains a list with latest edited customer invoices
*
* @param int $maxCount (Optional) The maximum count of elements inside the table
* @param int $socid (Optional) Show only results from the customer with this id
* @return string A HTML table that contains a list with latest edited customer invoices
* @return string A HTML table that contains a list with latest edited customer invoices
*/
function getLatestEditTable($maxCount = 5, $socid = 0)
{
@ -429,7 +429,7 @@ function getOpenTable($maxCount = 500, $socid = 0)
if ($socid) $sql .= " AND s.rowid = ".$socid;
$sql .= " ORDER BY f.rowid DESC";
$sql .= $db->plimit($maxCount, 0);
$resql = $db->query($sql);
if (!$resql)
{