Skip to content

Commit 33b1b08

Browse files
committed
Fix additional bind
1 parent e2d0a26 commit 33b1b08

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Database/Adapter/MariaDB.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,9 @@ public function createOrUpdateDocuments(
14501450
AND _permission IN (" . \implode(',', \array_map(fn ($i) => ":remove_{$type}_{$index}_{$i}", \array_keys($toRemove))) . ")
14511451
)";
14521452
$removeBindValues[":_uid_{$index}"] = $document->getId();
1453-
$removeBindValues[":_tenant_{$index}"] = $document->getTenant();
1453+
if ($this->sharedTables) {
1454+
$removeBindValues[":_tenant_{$index}"] = $document->getTenant();
1455+
}
14541456
foreach ($toRemove as $i => $perm) {
14551457
$removeBindValues[":remove_{$type}_{$index}_{$i}"] = $perm;
14561458
}

0 commit comments

Comments
 (0)