Fix more PHP warnings and notices

This commit is contained in:
slawkens
2020-02-28 21:49:47 +01:00
parent f8ef1b3b61
commit 8c680608ff
2 changed files with 2 additions and 2 deletions

View File

@@ -142,7 +142,7 @@ function getGuildLink($name, $generate = true)
function getItemNameById($id) {
require_once LIBS . 'items.php';
$item = Items::get($id);
return $item['name'];
return !empty($item['name']) ? $item['name'] : '';
}
function getItemImage($id, $count = 1)