diff --git a/modules/core/crypt.inc.php b/modules/core/crypt.inc.php index 5510c968..4e720744 100644 --- a/modules/core/crypt.inc.php +++ b/modules/core/crypt.inc.php @@ -183,7 +183,7 @@ class CORE_RSA function CORE_encrypt($data) { - if(LICENSE_KEY == '') return false; + if(LICENSE_KEY == '') return $data; // provide a license key in the setup area to enable encryption $rsa = new CORE_RSA; $keys = explode('-', LICENSE_KEY); $rsa_data = $rsa->rsa_encrypt($data, $keys[1], $keys[0]); @@ -194,7 +194,7 @@ function CORE_encrypt($data) { function CORE_decrypt($data) { - if(LICENSE_KEY == '') return false; + if(LICENSE_KEY == '') return $data; // provide a license key in the setup area to enable encryption $rc4_key = do_rc4(LICENSE_KEY, 'en', false); $rc4_data = do_rc4($data, 'de', $rc4_key); $rsa = new CORE_RSA;