bug_3495.diff

Administrator Admin, 2006-10-11 22:12

Download (1.44 KB)

View differences:

t3lib/class.t3lib_treeview.php (Arbeitskopie)
756 756
			$a++;
757 757
			$crazyRecursionLimiter--;
758 758

  
759
			$newID =$row['uid'];
759
			$newID = $row['uid'];
760

  
761
			if ($this->table=='pages' && $newID==0)	{
762
				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);
763
				exit;
764
			}
765

  
760 766
			$this->tree[]=array();		// Reserve space.
761 767
			end($this->tree);
762 768
			$treeKey = key($this->tree);	// Get the key for this space
......
891 897
	 * For arrays: This will return key to the ->dataLookup array
892 898
	 *
893 899
	 * @param	integer		parent item id
894
	 * @param	string		Class for sub-elements. 
900
	 * @param	string		Class for sub-elements.
895 901
	 * @return	mixed		data handle (Tables: An sql-resource, arrays: A parentId integer. -1 is returned if there were NO subLevel.)
896 902
	 * @access private
897 903
	 */
......
944 950
	 * @access private
945 951
	 * @see getDataInit()
946 952
	 */
947
	function getDataNext(&$res,$subCSSclass=''){
953
	function getDataNext(&$res,$subCSSclass='')	{
948 954
		if (is_array($this->data)) {
949 955
			if ($res<0) {
950 956
				$row=FALSE;