Project

General

Profile

Actions

Bug #16998

closed

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

Added by Christian almost 18 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-02-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions

Also available in: Atom PDF