Issue Bug Rejected

#33316Syntax-Error: Two If-clauses with assign-operator instead of equal-operator in class.db_list.inc; Solution included!

Clemens Riccabona 01/19/12, 13:18 updated 01/19/12, 14:45

Description

I don’t know if the code is in any use, but due to some debugging I stumbled over a syntax-error in class.db_list.inc in at least TYPO3 4.5.9 and 4.5.10 at line 194 ff
@
// code snippet original begin
// this will hide records from display – it has nothing todo with user rights!!
if ($pidList = $GLOBALS[‘BE_USER’]->getTSConfigVal(‘options.hideRecords.pages’)) {
if ($pidList = $GLOBALS[‘TYPO3_DB’]->cleanIntList($pidList)) {
$this->perms_clause .= ‘ AND pages.uid NOT IN (‘.$pidList.’)’;
}
}
// code snippet original end
@

This should be changed to this I think:


// code snippet corrected begin
// this will hide records from display - it has nothing todo with user rights!!
if ($pidList $GLOBALS['BE_USER']->getTSConfigVal('options.hideRecords.pages')) {
if ($pidList $GLOBALS['TYPO3_DB']->cleanIntList($pidList)) {
$this->perms_clause .= ' AND pages.uid NOT IN ('.$pidList.')';
}
}
// code snippet corrected end

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.