mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
Fixed getItemNameById function
Please reload your items in admin panel to make it work
This commit is contained in:
parent
fb9ead2690
commit
410c15c997
@ -137,16 +137,11 @@ function getGuildLink($name, $generate = true)
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getItemNameById($id) {
|
function getItemNameById($id) {
|
||||||
global $db;
|
require_once LIBS . 'items.php';
|
||||||
$query = $db->query('SELECT `name` FROM `' . TABLE_PREFIX . 'items` WHERE `id` = ' . $db->quote($id) . ' LIMIT 1;');
|
$item = Items::get($id);
|
||||||
if($query->rowCount() === 1) {
|
|
||||||
$item = $query->fetch();
|
|
||||||
return $item['name'];
|
return $item['name'];
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
function getItemImage($id, $count = 1)
|
function getItemImage($id, $count = 1)
|
||||||
{
|
{
|
||||||
$tooltip = '';
|
$tooltip = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user