[BUGFIX] Do not pass by reference
authorPhilipp Gampe <dev@philippgampe.info>
Fri, 27 Apr 2012 15:38:00 +0000 (17:38 +0200)
committerPhilipp Gampe <dev@philippgampe.info>
Fri, 27 Apr 2012 15:38:00 +0000 (17:38 +0200)
PHP passes objects by reference anyway.

Change-Id: I47d82c724224ec99dcf0cef2d4c4d42de5c2cf21
Fixes: #36676
Releases: 6.0, 4.7, 4.6, 4.5

typo3/sysext/linkvalidator/classes/class.tx_linkvalidator_processor.php

index 8f950d3..6f4b798 100644 (file)
@@ -105,7 +105,7 @@ class tx_linkvalidator_Processor {
                        // Hook to handle own checks
                if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks'])) {
                        foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks'] as $key => $classRef) {
-                               $this->hookObjectsArr[$key] = &t3lib_div::getUserObj($classRef);
+                               $this->hookObjectsArr[$key] = t3lib_div::getUserObj($classRef);
                        }
                }
        }