Project

General

Profile

Bug #24573 ยป 17034.diff

Administrator Admin, 2011-01-14 16:02

View differences:

t3lib/search/class.t3lib_search_livesearch.php (working copy)
$getRecordArray = array();
$fieldsToSearchWithin = $this->extractSearchableFieldsFromTable($tableName);
$pageBasedPermission = ($tableName == 'pages' && $this->userPermissions) ? $this->userPermissions : '1=1 ';
$where = 'pid IN(' . $pageIdList . ')' . $pageBasedPermission . $this->makeQuerySearchByTable($tableName, $fieldsToSearchWithin);
$where = 'pid IN(' . $pageIdList . ') AND ' . $pageBasedPermission . $this->makeQuerySearchByTable($tableName, $fieldsToSearchWithin);
$orderBy = $this->makeOrderByTable($tableName);
$getRecordArray = $this->getRecordArray(
$tableName,
$pageBasedPermission . $this->makeQuerySearchByTable($tableName, $fieldsToSearchWithin),
$where,
$this->makeOrderByTable($tableName),
$limit
);
    (1-1/1)