diff --git a/framework/yii/helpers/BaseSecurity.php b/framework/yii/helpers/BaseSecurity.php index 8e86654..03af81d 100644 --- a/framework/yii/helpers/BaseSecurity.php +++ b/framework/yii/helpers/BaseSecurity.php @@ -75,6 +75,9 @@ class BaseSecurity */ public static function decrypt($data, $password) { + if ($data === null) { + return null; + } $module = static::openCryptModule(); $ivSize = mcrypt_enc_get_iv_size($module); $iv = StringHelper::substr($data, 0, $ivSize);