Merge pull request #4403 from MrPetovan/develop
Missing dba::selectFirst in Model\Item
This commit is contained in:
commit
c8cc7f13f1
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue