[BUGFIX] tx_rsaauth_sv1::authUser() gives PHP notice
authorXavier Perseguers <xavier@typo3.org>
Mon, 19 Sep 2011 21:12:00 +0000 (23:12 +0200)
committerXavier Perseguers <xavier@typo3.org>
Mon, 19 Sep 2011 21:14:55 +0000 (23:14 +0200)
PHP Runtime Notice: Declaration of tx_rsaauth_sv1::authUser() should
be compatible with that of tx_sv_auth::authUser().

Change-Id: Idbd7ca2b69d3142497b1770088d991901950a852
Fixes: #30057
Releases: 4.6
Reviewed-on: http://review.typo3.org/5084
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/sv/class.tx_sv_auth.php
typo3/sysext/sv/class.tx_sv_authbase.php

index 9e5a7c8..67cfa73 100644 (file)
@@ -77,7 +77,7 @@ class tx_sv_auth extends tx_sv_authbase       {
         * @param       array           Data of user.
         * @return      boolean
         */
-       function authUser($user)        {
+       public function authUser(array $user) {
                $OK = 100;
 
                if ($this->login['uident'] && $this->login['uname'])    {
index 2a0b043..a3045e6 100644 (file)
@@ -88,7 +88,7 @@ class tx_sv_authbase extends t3lib_svbase     {
         * @param       string          security_level
         * @return      boolean         TRUE if login data matched
         */
-       function compareUident($user, $loginData, $security_level='') {
+       function compareUident(array $user, array $loginData, $security_level = '') {
                return $this->pObj->compareUident($user, $loginData, $security_level);
        }