[TYPO3-project-seminars] New Seminar - configuration

Oliver Klee typo3-german-02 at oliverklee.de
Mon Aug 31 15:12:25 CEST 2009


Hi,

Andrea Schmuttermair schrieb:
> 	public function getSpeaker() 
> 	{
> 		$userid = $GLOBALS['TSFE']->fe_user->user[uid];
> 		
> 		$result = $GLOBALS ['TYPO3_DB']->exec_SELECTgetRows (
> 't1.uid', 
>            ' tx_seminars_speakers AS t1 ',
>            't1.cruser_id = '.$userid.' AND t1.deleted=0');
> 
> 		if ($result[0]['uid'] != NULL)
> 		{
> 			return $result[0]['uid'];
> 		}
> 		else 
> 		return 0;
> 		

cruser_id usually contains the UID of the *BE* user who has created that
record. Matching it with a FE user UID doesn't make any sense.


Oliver


More information about the TYPO3-project-seminars mailing list