Skip to content

Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.

fix: error on statistics page when budget = 0 (#800)

Miguel Ribeirob7712dc80d66
diff --git a/includes/version.php b/includes/version.php
index 5da1f6f..d2d4ab5 100644
--- a/includes/version.php
+++ b/includes/version.php
@@ -1,3 +1,3 @@
<?php
-$version = "v2.52.0";
+$version = "v2.52.1";
?>
\ No newline at end of file
diff --git a/stats.php b/stats.php
index 87e121a..c7df67e 100644
--- a/stats.php
+++ b/stats.php
@@ -242,6 +242,7 @@ if ($result) {
}
$showVsBudgetGraph = false;
+$vsBudgetDataPoints = [];
if (isset($userData['budget']) && $userData['budget'] > 0) {
$budget = $userData['budget'];
$budgetLeft = $budget - $totalCostPerMonth;