Fix errors

This commit is contained in:
lopar 2018-06-22 22:39:42 +03:00
parent 9ae0112ceb
commit 1f6868a9cf

View File

@ -2888,7 +2888,7 @@ function show_shop_items($it, $from = 'shop')
* @param bool $returned * @param bool $returned
* @return string * @return string
*/ */
function showitem($row, $type, $returned = false) function showitem($row, $type = 0, $returned = false)
{ {
global $user, $runes_exp; global $user, $runes_exp;
$returnHTML = ''; $returnHTML = '';
@ -2906,7 +2906,7 @@ function showitem($row, $type, $returned = false)
$magic['time'] = $incmagic['time']; $magic['time'] = $incmagic['time'];
$magic['targeted'] = $incmagic['targeted']; $magic['targeted'] = $incmagic['targeted'];
} }
if (@!$row['count'] || $type == 10) { if (!$row['count'] || $type == 10) {
$up = ($row['upgrade'] > 0 ? " <font color=blue><b>[" . $row['upgrade'] . "]</b></font>" : ""); $up = ($row['upgrade'] > 0 ? " <font color=blue><b>[" . $row['upgrade'] . "]</b></font>" : "");