radiskull 13 years ago
parent 685a1d4b10
commit 8e91647c87

@ -99,6 +99,10 @@ function generateAttackLinkByID($attackid, $withColor = TRUE) {
} }
function generateAttackNameByID($attackid, $withColor = TRUE) { function generateAttackNameByID($attackid, $withColor = TRUE) {
if($attackid == null) {
return '';
}
$sql = 'SELECT * from attacken WHERE id = ' .$attackid; $sql = 'SELECT * from attacken WHERE id = ' .$attackid;
$qry = mysql_query($sql); $qry = mysql_query($sql);
$row = mysql_fetch_assoc($qry); $row = mysql_fetch_assoc($qry);

Loading…
Cancel
Save