From: Hypolite Petovan Date: Tue, 6 Feb 2018 01:45:12 +0000 (-0500) Subject: Missing dba::selectFirst in Model\Item X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9a76a14778198180c3a984291d968e3b059e67b1;p=friendica.git Missing dba::selectFirst in Model\Item --- 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;