[BUGFIX] Create history record only with valid log uid 62/27162/3
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Thu, 30 Jan 2014 17:33:51 +0000 (18:33 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 30 Jan 2014 22:03:48 +0000 (23:03 +0100)
commit019bde6f17fe926271c214a75b5791db2879c2b1
tree8212fedf018dddbee9af765081db8cf5d5505660
parent9d4ff3cf98480d2d765450fd4965da9c2dd5318d
[BUGFIX] Create history record only with valid log uid

To prevent a sql error the insert query for creating sys_history
records in Datahandler must only be executed, if argument
$logId is a valid uid. This could happen, if logging in
Datahandler is disabled.

Resolves: #55472
Releases: 6.2
Change-Id: Idacced5cb0af24a6c9f34165a8d0598ae9c91998
Reviewed-on: https://review.typo3.org/27162
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Classes/DataHandling/DataHandler.php