From 8afddf6b1745ca374107ad065f467e311dba2162 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 14 Dec 2003 17:06:11 +0000 Subject: [PATCH] backport fix for php5 error on cleanup() --- phpgwapi/inc/class.crypto.inc.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.crypto.inc.php b/phpgwapi/inc/class.crypto.inc.php index 68a629f057..f8b2711623 100644 --- a/phpgwapi/inc/class.crypto.inc.php +++ b/phpgwapi/inc/class.crypto.inc.php @@ -115,7 +115,14 @@ { if ($this->mcrypt_version != 'old') { - mcrypt_generic_end ($this->td); + if(phpversion >= '4.1.1') + { + mcrypt_generic_deinit($this->td); + } + else + { + mcrypt_generic_end($this->td); + } } } }