Fixed invoking of singleton methods
authorAlexander Ebert <ebert@woltlab.com>
Tue, 23 Jul 2013 11:15:04 +0000 (13:15 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 23 Jul 2013 11:15:04 +0000 (13:15 +0200)
wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php

index 0daddf1f76dd29b9f43f75a316863639ac176508..cc8d364fb6633238463938e9df303217f0c150b7 100644 (file)
@@ -133,7 +133,7 @@ class AJAXInvokeAction extends AbstractSecureAction {
                
                // check for validate method
                $validateMethod = 'validate'.ucfirst($this->actionName);
-               if (method_exists($this->actionObject, $this->actionName)) {
+               if (method_exists($this->actionObject, $validateMethod)) {
                        $this->actionObject->{$validateMethod}();
                }