Issue Bug Closed

#16998Warning displayed when using $GLOBALS["TSFE"]->fe_user->setKey(type, key, data)

Christian 02/16/07, 18:01 updated 10/02/18, 12:31

Description

If have following PHP-Code inserted in a PHP-Script Content-Element in Typo3 Backend (using Extension “page_php_content”):
$GLOBALS[‘TSFE’]->fe_user->setKey(‘user’,‘sessionfachgebiete’,$fachgebiet);
$GLOBALS[‘TSFE’]->fe_user->storeSessionData();

In Typo3 4.0 and with PHP 4.4.2-1: no problem.
In Typo3 4.0.4 and with PHP 4.3.10: the date is still saved correctly, but some warnings are displayed:

Warning: mysql_real_escape_string(): 28 is not a valid MySQL-Link resource in /srv/www/vhosts/mentorado-expert.de/httpdocs/typo3_src-4.0.4/t3lib/class.t3lib_db.php on line 555

Warning: mysql_query(): 28 is not a valid MySQL-Link resource in /srv/www/vhosts/mentorado-expert.de/httpdocs/typo3_src-4.0.4/t3lib/class.t3lib_db.php on line 193

$fachgebiet is an array.
When commenting out the first line, the warnings disappear.
Using getKey no warnings are displayed.

(issue imported from #M5005)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.