Properly format category name for HTML Displaying in budget

This commit is contained in:
johnnyq 2023-08-18 20:37:41 -04:00
parent 78de89271c
commit c89dbb4df3
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ $monthlyTotals = array_fill(1, 12, 0); // Initialize monthly totals for each mo
if ($categories->num_rows > 0) {
while($category = $categories->fetch_assoc()) {
echo "<tr>";
echo "<td>" . $category['category_name'] . "</td>";
echo "<td>" . nullable_htmlentities($category['category_name']) . "</td>";
$categoryTotal = 0;
for ($month = 1; $month <= 12; $month++) {
// Fetch the monthly budget for this category for 2022