diff --git a/aes.module b/aes.module index 1e62f51..df625b5 100755 --- a/aes.module +++ b/aes.module @@ -692,7 +692,7 @@ The decrypted string on success, false on error. function aes_decrypt($string, $base64encoded = true, $custom_key = null, $custom_cipher = null, $custom_iv = null, $custom_implementation = null) { //bail out if the passed string is empty - if(empty($string)) { + if(isset($string)) { watchdog("aes", "Tried to decrypt an empty string.", array(), WATCHDOG_WARNING); return false; }