fix updateTime init

This commit is contained in:
ghost 2023-05-04 10:11:13 +03:00
parent 317a58cfa2
commit adc791f378

View File

@ -254,7 +254,7 @@ class MySQL {
ON DUPLICATE KEY UPDATE `timeUpdated` = ?,
`quantity` = `quantity` + ' . (int) $quantity);
$query->execute([$hostImageId, $hostPageId, $timeAdded, $timeUpdated, $quantity, $timeUpdated]);
$query->execute([$hostImageId, $hostPageId, $timeAdded, null, $quantity, $timeUpdated]);
return $query->rowCount(); // no primary key
}