Skip to content

Commit 2a8e91d

Browse files
authored
Fixed warning in lib/Varien/Crypt/Mcrypt.php about mcrypt_compat 2.0.4 (#2968)
1 parent 6b0408f commit 2a8e91d

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)