From 9a76a14778198180c3a984291d968e3b059e67b1 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 5 Feb 2018 20:45:12 -0500 Subject: [PATCH] Missing dba::selectFirst in Model\Item --- src/Model/Item.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index b0bf3fedf0..01edf8d958 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1963,8 +1963,7 @@ EOT; public static function deleteThread($itemid, $itemuri = "") { - $item = dba::select('thread', ['uid'], ['iid' => $itemid]); - + $item = dba::selectFirst('thread', ['uid'], ['iid' => $itemid]); if (!DBM::is_result($item)) { logger('No thread found for id '.$itemid, LOGGER_DEBUG); return; -- 2.39.5