fix trade routes: now if you have not more than one village you cannot use them

This commit is contained in:
unknown
2012-06-09 18:06:12 +03:00
parent d55f8b7c31
commit fc7f74c197
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
<?php if($session->goldclub == 1 && $database->getProfileVillages($session->uid) > 1) { ?>
<?php if($session->goldclub == 1 && count($database->getProfileVillages($session->uid)) > 1) { ?>
<div id="build" class="gid17"><a href="#" onClick="return Popup(17,4);" class="build_logo">
<img class="building g17" src="img/x.gif" alt="Marketplace" title="Marketplace" />
</a>
+1 -1
View File
@@ -8,7 +8,7 @@
<?php
}
?>
<?php if($session->goldclub == 1 && $database->getProfileVillages($session->uid) > 1) {
<?php if($session->goldclub == 1 && count($database->getProfileVillages($session->uid)) > 1) {
?>
| <a href="build.php?id=<?php echo $id; ?>&amp;t=4" <?php if(isset($_GET['t']) && $_GET['t'] == 4) { echo "class=\"selected\""; } ?>>trade routes</a>
<?php