mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +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,14 +137,9 @@ function getGuildLink($name, $generate = true)
|
||||
}
|
||||
|
||||
function getItemNameById($id) {
|
||||
global $db;
|
||||
$query = $db->query('SELECT `name` FROM `' . TABLE_PREFIX . 'items` WHERE `id` = ' . $db->quote($id) . ' LIMIT 1;');
|
||||
if($query->rowCount() === 1) {
|
||||
$item = $query->fetch();
|
||||
return $item['name'];
|
||||
}
|
||||
|
||||
return '';
|
||||
require_once LIBS . 'items.php';
|
||||
$item = Items::get($id);
|
||||
return $item['name'];
|
||||
}
|
||||
|
||||
function getItemImage($id, $count = 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user