From 8e91647c871de65270800da231eb85f4ab732898 Mon Sep 17 00:00:00 2001 From: radiskull Date: Mon, 19 Mar 2012 17:38:46 +0000 Subject: [PATCH] #111 gefixt --- ag/include/designfunctions.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ag/include/designfunctions.inc.php b/ag/include/designfunctions.inc.php index 9ddf5d3..19da2f6 100644 --- a/ag/include/designfunctions.inc.php +++ b/ag/include/designfunctions.inc.php @@ -99,6 +99,10 @@ function generateAttackLinkByID($attackid, $withColor = TRUE) { } function generateAttackNameByID($attackid, $withColor = TRUE) { + if($attackid == null) { + return ''; + } + $sql = 'SELECT * from attacken WHERE id = ' .$attackid; $qry = mysql_query($sql); $row = mysql_fetch_assoc($qry);