From 50f3098495b3858671489121f8ec4cb37a283f24 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 28 Jul 2019 00:12:49 -0400 Subject: [PATCH] Revert adding DBA::toArray to Item::selectToArray --- src/Model/Item.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 67a6a2daa..28f7b436d 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -386,7 +386,13 @@ class Item extends BaseObject return []; } - return DBA::toArray($result); + $data = []; + while ($row = self::fetch($result)) { + $data[] = $row; + } + DBA::close($result); + + return $data; } /**