[TYPO3-dev] unexistent GLOBALS return NULL instead of ""

Thomas Sperling moppie.mop at gmx.de
Tue Jan 21 16:58:40 CET 2014


Hello,
currently I upgrade a TYPO3-System up to 6.2dev.
I got several Errors like: "ERROR	Column 'cruser_id' cannot be null
lastBuiltQuery	INSERT INTO sys_file_metadata (file,pid,crdate,tstamp,cruser_id) VALUES ('2258','0','1390303717','1390303717',NULL)"
OR
"Column 'cookie' cannot be null
lastBuiltQuery	INSERT INTO index_stat_search (searchstring,searchoptions,feuser_id,cookie,IP,hits,tstamp) VALUES ('test',...,...,NULL,.....)

In the problem is that an empty $this->fe_user->id and a empty $GLOBALS['BE_USER']->user['uid'] result into NULL and not in an empty string. Is this a bug, does someone know this problem?

Regards,
Thomas



More information about the TYPO3-dev mailing list