From ba472ac3027b14771172160cd190160b583edef7 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 27 Aug 2017 12:35:05 +0100 Subject: [PATCH] Fix DB connect --- DonationsStats.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DonationsStats.php b/DonationsStats.php index ae04526..00da480 100755 --- a/DonationsStats.php +++ b/DonationsStats.php @@ -14,7 +14,9 @@ $total_ever = 0.0; function print_donation_year($year) { -if ($db_link == false) { +global $db_link; + +if ($db_link === false) { echo 'DB connection failed'; return; }