WIP: new battle

This commit is contained in:
2024-12-10 13:09:03 +02:00
parent 73862ca752
commit d41147da45
18 changed files with 1010 additions and 1111 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
<?php
use Core\Db;
use User\ItemsModel;
require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'autoload.php';
@@ -34,7 +35,7 @@ where inShop = 30 and `delete` = 0';
foreach (Db::getRows($q) as $row) {
if ($row['inGroup']) {
$col = $u->itemsX($row['id']);
$col = ItemsModel::itemsX($row['id']);
if ($col > 1) {
$stmt = Db::prepare(
'update items_users set inShop = 0, 1price = ?