Basket::setObjects: Reset `$chosenObjects` property only if the given objects is empty

This commit is contained in:
raviks789 2024-08-05 12:09:29 +02:00 committed by Eric Lippmann
parent 058bc4a776
commit 6be8cd49af
1 changed files with 0 additions and 1 deletions

View File

@ -82,7 +82,6 @@ class Basket extends DbObject implements ExportInterface
if (empty($objects)) {
$this->chosenObjects = [];
} else {
$this->chosenObjects = [];
foreach ((array) $objects as $type => $object) {
$this->addObjects($type, $object);
}