From e22476a631ec900da4fa78da32c381f0c65309fe Mon Sep 17 00:00:00 2001 From: "Igor Barkov [iwork]" Date: Fri, 11 Jan 2019 18:09:09 +0200 Subject: [PATCH] tests --- admin/test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/test.php b/admin/test.php index 2c2e275..69ef0a0 100644 --- a/admin/test.php +++ b/admin/test.php @@ -29,7 +29,7 @@ foreach ($res->fetch_assoc() as $value) { print_r($items); # $items = []; foreach(фетч того ебучего массива as $value) {$items[$value['id']] = $value} -$result = db::c('SELECT * FROM `shop` WHERE count > 0')->query(); +$result = db::c()->query('SELECT * FROM `shop` WHERE count > 0'); while ($row = $result->fetch_assoc()) { $iteminfo[] = new item($row); } \ No newline at end of file