Feature #17881 » v43_0006882.patch

Administrator Admin, 2009-09-28 22:42

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
7729 7729
		if (!$pid_uid_flag)	{		// If not uid and not pid then uid is set to 0 - which results in nothing!!
7730 7730
			$query.=' AND '.$table.'.uid=0';
7731 7731
		}
7732
		if ($where = trim($conf['where']))	{
7732
		$where = trim($this->stdWrap($conf['where'], $conf['where.']));	// Be careful not to use GPvar with this feature without saving it (e.g. with stdWrap.intval)
7733
		if ($where)	{
7733 7734
			$query.=' AND '.$where;
7734 7735
		}
7735 7736

  
......
7743 7744
			$query.=' AND '.$conf['languageField'].' IN ('.$sys_language_content.')';
7744 7745
		}
7745 7746

  
7746
		$andWhere = trim($this->stdWrap($conf['andWhere'],$conf['andWhere.']));
7747
		$andWhere = trim($this->stdWrap($conf['andWhere'],$conf['andWhere.'])); // Be careful not to use GPvar with this feature without saving it (e.g. with stdWrap.intval)
7747 7748
		if ($andWhere)	{
7748 7749
			$query.=' AND '.$andWhere;
7749 7750
		}
(2-2/2)