From 0674579840c2785323cba9d3e860c768f875ddf3 Mon Sep 17 00:00:00 2001 From: Peter Niederlag Date: Thu, 24 Jul 2014 12:20:20 +0200 Subject: [PATCH 1/1] [BUGFIX] Turn isOnSymmetricSide into static function 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 Tested-by: Anja Leichsenring Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn --- typo3/sysext/core/Classes/Database/RelationHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/core/Classes/Database/RelationHandler.php b/typo3/sysext/core/Classes/Database/RelationHandler.php index 736f113f3da6..5aa9603cdb2d 100644 --- a/typo3/sysext/core/Classes/Database/RelationHandler.php +++ b/typo3/sysext/core/Classes/Database/RelationHandler.php @@ -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']]; -- 2.20.1