From 96c71db7c36883a9d3a5eca574e936a12d9628b4 Mon Sep 17 00:00:00 2001 From: "NeatElves@gmail.com" Date: Mon, 24 Mar 2014 06:55:08 +0000 Subject: [PATCH] =?utf8?q?=D0=9F=D0=BE=D0=BF=D1=8B=D1=82=D0=BA=D0=B0=20?= =?utf8?q?=D0=BF=D0=BE=D0=B4=D0=B3=D0=BE=D0=BD=D0=BA=D0=B8=20=D0=BF=D0=BE?= =?utf8?q?=D0=B4=20=D1=80=D0=B5=D0=B2=D0=B8=D0=B7=D0=B8=D1=8E=2012606.=202?= =?utf8?q?-=D0=B9=20=D0=BA=D1=83=D1=81=D0=BE=D1=87=D0=B5=D0=BA.)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://cswowd-fork.googlecode.com/svn/trunk@175 e451fad0-63ce-11de-bed1-e3a98b22654c --- include/functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/functions.php b/include/functions.php index 9be3142..2715bbb 100644 --- a/include/functions.php +++ b/include/functions.php @@ -590,12 +590,12 @@ function getCreature($creature_id, $fields = "*") function getCreatureName($creature_id, $as_ref=1) { - if ($Creature=getCreature($creature_id, "`entry`, `name`")) + if ($Creature=getCreature($creature_id, "`Entry`, `Name`")) { - if ($Creature['name']=="") $Creature['name'] = "npc_$creature_id"; + if ($Creature['Name']=="") $Creature['Name'] = "npc_$creature_id"; if ($as_ref) - return "".$Creature['name'].""; - return $Creature['name']; + return "".$Creature['Name'].""; + return $Creature['Name']; } return "Unknown creature - $creature_id"; } -- 2.11.4.GIT