do not query shop items on when selling something
This commit is contained in:
parent
6566f7e725
commit
c6f86632ef
3
shop.php
3
shop.php
@ -178,6 +178,7 @@ switch ($shopCategoryTypeNumber) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (false == $saleItems) {
|
||||||
$shopItems = db::c()->query('SELECT `shop`.*,
|
$shopItems = db::c()->query('SELECT `shop`.*,
|
||||||
`magic`.`name` AS `magic_name`,
|
`magic`.`name` AS `magic_name`,
|
||||||
`magic`.`chanse` AS `magic_chanse`,
|
`magic`.`chanse` AS `magic_chanse`,
|
||||||
@ -193,7 +194,7 @@ $iteminfo = [];
|
|||||||
while ($row = $shopItems->fetch_assoc()) {
|
while ($row = $shopItems->fetch_assoc()) {
|
||||||
$iteminfo[] = new ShopItem($row);
|
$iteminfo[] = new ShopItem($row);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
Loading…
Reference in New Issue
Block a user