Skip to content

Commit

Permalink
blah blah
Browse files Browse the repository at this point in the history
  • Loading branch information
sanasol committed Oct 23, 2013
1 parent eeba38d commit 799e74c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions merchant_db_flux/vending/modules/vending/index.php
Expand Up @@ -11,8 +11,8 @@ function get_item_name($id, $server)
$sth = $server->connection->getStatement($sql);
$sth->execute();
$r = $sth->fetch();
$slots = ($r->slots > 0) ? "[{$r->slots}]":"";
if(strlen($r->name_japanese) > 1)
$slots = (@$r->slots > 0) ? "[{$r->slots}]":"";
if(strlen(@$r->name_japanese) > 1)
return $r->name_japanese.$slots;
else
return "Unknown Item";
Expand Down

0 comments on commit 799e74c

Please sign in to comment.