Formatting error in dashboard.inc fixed.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 25 Nov 2019 07:44:00 +0000 (08:44 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 25 Nov 2019 07:44:00 +0000 (08:44 +0100)
includes/dashboard.inc

index bb6e6e258335fd231bd3bc75f987f302b663426e..9a5a9f4b5ce57e024ebc5292ffecdcfde36c7e31 100644 (file)
@@ -195,7 +195,7 @@ function customer_top($today, $limit=10, $width="33", &$pg=null)
        while ($myrow = db_fetch($result))
        {
                alt_table_row_color($k);
-               $name = $myrow["debtor_no"]." ".$myrow["name"];
+               $name = $myrow["debtor_no"]." ".htmlspecialchars_decode($myrow["name"]);
                label_cell($name);
                amount_cell($myrow['total']);
                if ($pg != null)
@@ -232,7 +232,7 @@ function supplier_top($today, $limit=10, $width="33", &$pg=null)
        while ($myrow = db_fetch($result))
        {
                alt_table_row_color($k);
-               $name = $myrow["supplier_id"]." ".$myrow["supp_name"];
+               $name = $myrow["supplier_id"]." ".htmlspecialchars_decode($myrow["supp_name"]);
                label_cell($name);
                amount_cell($myrow['total']);
                if ($pg != null)