[BUGFIX] rsaauth BackendFactory does not unset backend 70/22570/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:40:59 +0000 (22:40 +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/22570
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/rsaauth/Classes/Backend/BackendFactory.php

index 1ea6557..523d7c7 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 tx_rsaauth_abstract_backend.
         *
-        * <!-- 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);
                                }
                        }
                }
@@ -93,4 +91,4 @@ class BackendFactory {
 }
 
 
-?>
\ No newline at end of file
+?>