Project

General

Profile

Bug #16150 » bug_3495.diff

Administrator Admin, 2006-10-11 22:12

View differences:

t3lib/class.t3lib_treeview.php (Arbeitskopie)
$a++;
$crazyRecursionLimiter--;
$newID =$row['uid'];
$newID = $row['uid'];
if ($this->table=='pages' && $newID==0) {
t3lib_BEfunc::typo3PrintError ('Endless recursion detected', 'TYPO3 has detected an error in the database. Please fix it manually (e.g. using phpMyAdmin) and change the UID of pages:0 to a new value.<br /><br />For more information, see <a href="http://bugs.typo3.org/view.php?id=3495" target="_blank">bugs.typo3.org/view.php?id=3495</a>',0);
exit;
}
$this->tree[]=array(); // Reserve space.
end($this->tree);
$treeKey = key($this->tree); // Get the key for this space
......
* For arrays: This will return key to the ->dataLookup array
*
* @param integer parent item id
* @param string Class for sub-elements.
* @param string Class for sub-elements.
* @return mixed data handle (Tables: An sql-resource, arrays: A parentId integer. -1 is returned if there were NO subLevel.)
* @access private
*/
......
* @access private
* @see getDataInit()
*/
function getDataNext(&$res,$subCSSclass=''){
function getDataNext(&$res,$subCSSclass='') {
if (is_array($this->data)) {
if ($res<0) {
$row=FALSE;
(2-2/2)