mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-28 06:06:51 +01:00
Fix warning
This commit is contained in:
@@ -141,7 +141,7 @@
|
|||||||
foreach ( $slots as $pid => $position )
|
foreach ( $slots as $pid => $position )
|
||||||
{
|
{
|
||||||
$item = $db->query( 'SELECT `itemtype`, `attributes` FROM `player_items` WHERE `player_items`.`player_id` = '.$player->getId().' AND `player_items`.`pid` = '.$pid.';' )->fetch();
|
$item = $db->query( 'SELECT `itemtype`, `attributes` FROM `player_items` WHERE `player_items`.`player_id` = '.$player->getId().' AND `player_items`.`pid` = '.$pid.';' )->fetch();
|
||||||
if ( $item['itemtype'] != null )
|
if ( $item && $item['itemtype'] != null )
|
||||||
{
|
{
|
||||||
$count = unpack( 'C*', $item['attributes'] );
|
$count = unpack( 'C*', $item['attributes'] );
|
||||||
if ( isset( $count[2] ) ) {
|
if ( isset( $count[2] ) ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user