Skip to content

Commit 06c1b26

Browse files
luigifabfballiano
authored andcommitted
Fixed warning in lib/Varien/Crypt/Mcrypt.php about mcrypt_compat 2.0.4 (#2968)
1 parent 60b4e3f commit 06c1b26

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Varien/Crypt/Mcrypt.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ public function decrypt($data)
126126

127127
protected function _reset()
128128
{
129-
mcrypt_generic_deinit($this->getHandler());
130-
mcrypt_module_close($this->getHandler());
129+
$handler = $this->getHandler();
130+
mcrypt_generic_deinit($handler);
131+
mcrypt_module_close($handler);
131132
}
132133
}

0 commit comments

Comments
 (0)