Browse Source

Don't show "This month donations" if there's no DB connection

pull/4/head
falkTX 9 years ago
parent
commit
880c5a7891
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      includes/header.php

+ 2
- 1
includes/header.php View File

@@ -228,10 +228,11 @@ if ($PAGE_TYPE != "PASTE" && $PAGE_TYPE != "DONATIONS" && $PAGE_TYPE != "NAMESPA
<div id="donations_container" style="position:absolute; top:40px; right:5%; width: 250px; height: 10px; font-size: 0.8em;">
<div id="donations_bar"><div style="width:<?php print_r($cur_percent); ?>%"></div></div>
</div>
<?php if ($db_link) {
<div style="position:absolute; top:44px; right:5%; width: 270px; height: 10px; font-size: 0.8em; text-align: center;">
This month donations: <?php print_r($cur_amount); ?> / 300 &euro;
</div>
<?php } ?>
<?php } } ?>

<div id="subheader" class="container_16">
<div id="breadcrump" class="grid_12 alpha">


Loading…
Cancel
Save