N°3788 - timeout/excessive duration during MTP - fix PostDbCreation

This commit is contained in:
odain
2021-03-09 11:44:25 +01:00
parent 995619af9b
commit 52cd4f7c5e

View File

@@ -179,7 +179,7 @@ SQL;
$iUpdated = 0;
while ($oAttachment = $oSet->Fetch())
{
if ($oAttachment->Get('item_id') == 0) {
if (empty($oAttachment->Get('item_class'))) {
//do not treat orphan attachment
continue;
}