WIP: new battle
This commit is contained in:
@@ -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 = ?
|
||||
|
||||
Reference in New Issue
Block a user