Bug #17816 ยป preview_bug.patch

Administrator Admin, 2009-11-03 13:23

View differences:

typo3_src-4.2.9/t3lib/class.t3lib_userauthgroup.php 2009-11-03 12:44:47.000000000 +0100
252 252
		$id = intval($id);
253 253

  
254 254
			// Check if input id is an offline version page in which case we will map id to the online version:
255
		$checkRec = t3lib_beFUnc::getRecord('pages',$id,'pid,t3ver_oid');
255
		//$checkRec = t3lib_beFUnc::getRecord('pages',$id,'pid,t3ver_oid');
256
		// Andreas Heling: $checkRec is null if no TCA array exists.
257
		$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('pid,t3ver_oid','pages','uid='.intval($id));
258
		$checkRec = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
259
		$GLOBALS['TYPO3_DB']->sql_free_result($res);
260
		// -------------------
256 261
		if ($checkRec['pid']==-1)	{
257 262
			$id = intval($checkRec['t3ver_oid']);
258 263
		}
    (1-1/1)