Merge pull request #4403 from MrPetovan/develop

Missing dba::selectFirst in Model\Item
This commit is contained in:
Hypolite Petovan 2018-02-05 20:46:42 -05:00 committed by GitHub
commit c8cc7f13f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;