[BUGFIX] rsaauth BackendFactory does not unset backend 45/22545/2
authorMarkus Klein <klein.t3@mfc-linz.at>
Wed, 24 Jul 2013 18:12:42 +0000 (20:12 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Thu, 25 Jul 2013 20:38:58 +0000 (22:38 +0200)
The BackendFactory of rsaauth tries to forcefully unset an
instantiated backend, but unsets the class name instead of the object.

Resolves: #50411
Releases: 6.2, 6.1, 6.0
Change-Id: I26712c73b74788cad159f95c7e54cbbbf69e8764
Reviewed-on: https://review.typo3.org/22545
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/rsaauth/Classes/Backend/BackendFactory.php

index 0911d60..f831050 100644 (file)
@@ -55,8 +55,6 @@ class BackendFactory {
         * will not be an abstract backend as shown below but a real class, which is
         * derieved from the \TYPO3\CMS\Rsaauth\Backend\AbstractBackend.
         *
-        * <!-- Please, keep the variable type! It helps IDEs to provide autocomple! -->
-        *
         * @var \TYPO3\CMS\Rsaauth\Backend\AbstractBackend
         */
        static protected $selectedBackend = NULL;
@@ -83,7 +81,7 @@ class BackendFactory {
                                                break;
                                        }
                                        // Attempt to force destruction of the object
-                                       unset($backend);
+                                       unset($backendObject);
                                }
                        }
                }