Index: typo3/sysext/indexed_search/modfunc2/class.tx_indexedsearch_modfunc2.php =================================================================== --- typo3/sysext/indexed_search/modfunc2/class.tx_indexedsearch_modfunc2.php (revision 317) +++ typo3/sysext/indexed_search/modfunc2/class.tx_indexedsearch_modfunc2.php (working copy) @@ -143,7 +143,7 @@ $this->note = $LANG->getLL('justthispage'); } else { // Limit access to pages of the current site - $secureaddwhere = ' AND pageid IN ('.($this->extGetTreeList($conf['bid'],100,0,'1')).$conf['bid'].') '; + $secureaddwhere = ' AND pageid IN (' . ($this->extGetTreeList($conf['bid'], 100, 0, '1=1')) . $conf['bid'] . ') '; $this->note = $LANG->getLL('allpages'); $queryParts['WHERE'] = '1=1 ' . $addwhere . $secureaddwhere;