Browse Source

Fix DB connect

pull/12/head
falkTX 7 years ago
parent
commit
ba472ac302
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      DonationsStats.php

+ 3
- 1
DonationsStats.php View File

@@ -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 '<tr><td colspan="6">DB connection failed</td></tr>';
return;
}


Loading…
Cancel
Save