[BUGFIX] Turn isOnSymmetricSide into static function 77/31777/2
authorPeter Niederlag <peter.niederlag@typo3.org>
Thu, 24 Jul 2014 10:20:20 +0000 (12:20 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 24 Jul 2014 18:33:38 +0000 (20:33 +0200)
Function isOnSymmetricSide of RelationHandler is used as
static function all the time so we properly turn the function
declaration into a static one.

Resolves: #60516
Releases: 6.3, 6.2
Change-Id: I72a922596e69dca26e173dad5b42da76e0949865
Reviewed-on: http://review.typo3.org/31748
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
(cherry picked from commit 0674579840c2785323cba9d3e860c768f875ddf3)
Reviewed-on: http://review.typo3.org/31777

typo3/sysext/core/Classes/Database/RelationHandler.php

index 736f113..5aa9603 100644 (file)
@@ -1308,7 +1308,7 @@ class RelationHandler {
         * @return boolean Returns TRUE if looking from the symmetric ("other") side to the relation.
         * @todo Define visibility
         */
-       public function isOnSymmetricSide($parentUid, $parentConf, $childRec) {
+       static public function isOnSymmetricSide($parentUid, $parentConf, $childRec) {
                return MathUtility::canBeInterpretedAsInteger($childRec['uid'])
                        && $parentConf['symmetric_field']
                        && $parentUid == $childRec[$parentConf['symmetric_field']];