Issue Bug Closed

#16227tslib_cObj::getTreeList blank before $moreWhereClauses = ',

J¶rg Leshel 06/11/06, 01:17 updated 03/13/07, 15:26

Description

Hi, sorry for bothering you with this cause it’s not really a bug, but when using tslib_cObj::getTreeList you have to put an blank before the argument $moreWhereClauses = ‘,
I used like this and was wondering why it’s not working
tslib_cObj::getTreeList ( $GLOBALS[“TSFE”]->id,$descend,0,0,’‘,‘AND doktype != 254’,’‘,0 );
where as this is working…
tslib_cObj::getTreeList ( $GLOBALS[“TSFE”]->id,$descend,0,0,’‘,’ AND doktype != 254’,’‘,0 );

perhaps you could just put a blank after the “doktype!=6’“
$res = $GLOBALS[‘TYPO3_DB’]->exec_SELECTquery($allFields, ‘pages’, ‘pid=’.intval($id).’ AND deleted=0 AND doktype!=255 AND doktype!=6’.$moreWhereClauses, ‘’ ,‘sorting’);

(issue imported from #M3648)

Reviews 0

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