2005-10-19_bugfix_1066.patch

Administrator Admin, 2005-10-25 16:12

Download (1.32 KB)

View differences:

t3lib/class.t3lib_page.php 19 Oct 2005 13:42:47 -0000
425 425
					} else unset($row);	// If the mount point could not be fetched with respect to enableFields, unset the row so it does not become a part of the menu!
426 426
				}
427 427

  
428
					// if shortcut, look up if the target exists
429
				if ($row['doktype'] == 4 && $row['shortcut']) {
430
					if ($row['shortcut_mode'] == 0) {
431
						$res2 = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', 'uid='.intval($row['shortcut']).$this->where_hid_del.$this->where_groupAccess.' '.$addWhere, '', $sortField);
432
					} else { // check subpages - first subpage or random subpage
433
						$res2 = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', 'pid='.intval($row['shortcut']).$this->where_hid_del.$this->where_groupAccess.' '.$addWhere, '', 'sorting', 1);
434
					}
435
					if (!$GLOBALS['TYPO3_DB']->sql_num_rows($res2)) {
436
						unset($row);
437
					}
438
				}
439

  
428 440
					// Add to output array after overlaying language:
429 441
				if (is_array($row))	{
430 442
					$output[$origUid] = $this->getPageOverlay($row);