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 '