1
1
Fork 0

Missing dba::selectFirst in Model\Item

This commit is contained in:
Hypolite Petovan 2018-02-05 20:45:12 -05:00
parent c1c4c32966
commit 9a76a14778

View file

@ -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;