Update 17_4.tpl

(Gold Club Active)MarketPlace -Trade Routes .The user get error when try to delete/expand non selected  route or non route in  list.(You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1).

TravianZ\trunk\Templates\Build\17_4_test.tpl
before  line 60 :
<a href="build.php?action=extendRoute&routeid=<?php echo $routeid; ?>">extend</a>*
add line:
<?php $routeid=$routeid == 0? $routeid=0:$routeid; ?>
This commit is contained in:
hexcoded
2013-06-06 16:18:48 +03:00
parent b33c62d7d3
commit 9be57ca904
+2 -1
View File
@@ -57,6 +57,7 @@ echo "Trade route to <a href=karte.php?d=".$route['wid']."&c=".$generator->getMa
<th>
</th>
<th colspan="4">
<?php $routeid=$routeid == 0? $routeid=0:$routeid; ?>
<a href="build.php?action=extendRoute&routeid=<?php echo $routeid; ?>">extend</a>*
| <a href="build.php?id=<?php echo $id; ?>&t=4&action=editRoute&routeid=<?php echo $routeid; ?>">edit</a>
| <a href="build.php?action=delRoute&routeid=<?php echo $routeid; ?>">delete</a>
@@ -71,4 +72,4 @@ echo "Trade route to <a href=karte.php?d=".$route['wid']."&c=".$generator->getMa
}}else{
header("Location: build.php?id=".$_GET['id']."");
}
?>
?>