[CLEANUP] Remove superfluous parameters in method calls
authorAndreas Wolf <andreas.wolf@ikt-werk.de>
Wed, 1 Feb 2012 10:53:59 +0000 (11:53 +0100)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Wed, 1 Feb 2012 10:53:59 +0000 (11:53 +0100)
Classes/Backend/TceMainHook.php
Classes/Utility/Encryption.php

index f7cc46d..898b9f1 100644 (file)
@@ -17,6 +17,5 @@ class Tx_FalWebdav_Backend_TceMainHook {
                        return;
                }
                $currentValue = Tx_FalWebdav_Utility_Encryption::encryptPassword($currentValue);
-               echo $currentValue;
        }
 }
index cf5ceb3..b73f8d7 100644 (file)
@@ -83,7 +83,7 @@ class Tx_FalWebdav_Utility_Encryption {
                mcrypt_generic_init($td, $key, $iv);
 
                $encryptedPassword = mcrypt_generic($td, $value);
-               mcrypt_generic_deinit($td, $key, $iv);
+               mcrypt_generic_deinit($td);
 
                $encryptedText = sprintf('$%s$%s$%s$%s',
                        self::$encryptionMethod,
@@ -124,7 +124,7 @@ class Tx_FalWebdav_Utility_Encryption {
 
                mcrypt_generic_init($td, $key, $iv);
                $decryptedPassword = trim(mdecrypt_generic($td, base64_decode($encryptedPassword)));
-               mcrypt_generic_deinit($td, $key, $iv);
+               mcrypt_generic_deinit($td);
 
                        // close the module opened for decrypting
                mcrypt_module_close($td);