[BUGFIX] FAL: Prevent invalid NULL value on metadata creation 28/29028/7
authorMarkus Klein <klein.t3@mfc-linz.at>
Tue, 1 Apr 2014 14:11:40 +0000 (16:11 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Wed, 2 Apr 2014 10:18:26 +0000 (12:18 +0200)
commit38f484e0efc0b817c34c7e9bb9c6cfe721dd8e87
tree1c402f3251bdd968f4e97a47895723ba855cc186
parentd40ef8655fede717ae55c87fafd8fb20604b0ae7
[BUGFIX] FAL: Prevent invalid NULL value on metadata creation

The cruser_id field is now guaranteed to be an integer.
This patch checks if a BE_USER is available and uses zero
otherwise.

Resolves: #57495
Related: #46020
Releases: 6.2
Change-Id: I8260604eb30ca32d2a5e079fa6f5b10a6d04714e
Reviewed-on: https://review.typo3.org/29028
Reviewed-by: Nicole Cordes
Reviewed-by: Jigal van Hemert
Reviewed-by: Frans Saris
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/Resource/Index/MetaDataRepository.php
typo3/sysext/core/Classes/Resource/Service/IndexerService.php