[TASK] Superfluous comparison in DataHandler 38/25738/2
authorWouter Wolters <typo3@wouterwolters.nl>
Thu, 28 Nov 2013 20:48:34 +0000 (21:48 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Tue, 17 Dec 2013 00:46:17 +0000 (01:46 +0100)
Fix superfluous comparison against boolean in
DataHandler::versionizeRecord

Change-Id: I345917b9eb29f3cbb39a137f624926888dec623a
Resolves: #54051
Releases: 6.2
Reviewed-on: https://review.typo3.org/25738
Reviewed-by: Jo Hasenau
Reviewed-by: Michiel Roos
Tested-by: Michiel Roos
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/DataHandling/DataHandler.php

index bdfb895..7ca3451 100644 (file)
@@ -4703,7 +4703,7 @@ class DataHandler {
                                                                $workspaceCheck = TRUE;
                                                                if ($this->BE_USER->workspace !== 0) {
                                                                        // Look for version already in workspace:
-                                                                       $workspaceCheck = BackendUtility::getWorkspaceVersionOfRecord($this->BE_USER->workspace, $table, $id, 'uid') ? FALSE : TRUE;
+                                                                       $workspaceCheck = !BackendUtility::getWorkspaceVersionOfRecord($this->BE_USER->workspace, $table, $id, 'uid');
                                                                }
                                                                if ($workspaceCheck) {
                                                                        // Create raw-copy and return result: