Skip to content

Commit 65ae44c

Browse files
Alexander Stehlikirnnr
authored andcommitted
[BUGFIX] SQL error for mountpoints with no subpages
If a mountpoint has no subpages and the mountpoint page itsself is not overlayed there are no pages that need to be added to the index. In that case the SQL queries are skipped which would cause an error otherwise because of an empty IN() clause. Resolves: #65282 Change-Id: Ibdf00259c895596281084866cbf9285afaf22063
1 parent 723a7a0 commit 65ae44c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Classes/IndexQueue/Initializer/Page.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ protected function initializeMountPages() {
132132
);
133133
}
134134

135+
// This can happen when the mount point does not show the content of the
136+
// mounted page and the mounted page does not have any subpages.
137+
if (empty($mountedPages)) {
138+
continue;
139+
}
140+
135141
Tx_Solr_DatabaseUtility::transactionStart();
136142
try {
137143
$this->addMountedPagesToIndexQueue($mountedPages);

0 commit comments

Comments
 (0)