[BUGFIX] Regression: intval patch broke levelmedia 73/27573/3
authorMichiel Roos <michiel@maxserv.nl>
Wed, 12 Feb 2014 12:06:32 +0000 (13:06 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Wed, 12 Feb 2014 12:52:25 +0000 (13:52 +0100)
Change-Id: Ib1c877c1353844dfac1955c39c864a0974bd6b78
Resolves: #55706
Releases: 6.2
Reviewed-on: https://review.typo3.org/27573
Reviewed-by: Stefano Kowalke
Reviewed-by: Jo Hasenau
Tested-by: Jo Hasenau
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/Utility/RootlineUtility.php

index 3e4b73d..3203ba7 100644 (file)
@@ -272,7 +272,7 @@ class RootlineUtility {
                                        $columnIsOverlaid = in_array($column, $pageOverlayFields, TRUE);
                                        $table = $configuration['foreign_table'];
                                        $field = $configuration['foreign_field'];
-                                       $whereClauseParts = array($field . ' = ' . (int)$columnIsOverlaid ? $uid : $pageRecord['uid']);
+                                       $whereClauseParts = array($field . ' = ' . (int)($columnIsOverlaid ? $uid : $pageRecord['uid']));
                                        if (isset($configuration['foreign_match_fields']) && is_array($configuration['foreign_match_fields'])) {
                                                foreach ($configuration['foreign_match_fields'] as $field => $value) {
                                                        $whereClauseParts[] = $field . ' = ' . $this->databaseConnection->fullQuoteStr($value, $table);