Merge branch 'ent-12416-error-con-php82-y-encryption_passphrase' into 'develop'

Ent 12416 Error con php82 y encryption_passphrase

See merge request artica/pandorafms!6724
This commit is contained in:
Rafael Ameijeiras 2023-12-13 12:12:00 +00:00
commit 14a74ca5f2
1 changed files with 3 additions and 0 deletions

View File

@ -581,6 +581,9 @@ function io_output_password($password, $wrappedBy='')
$output = ($plaintext === ENTERPRISE_NOT_HOOK) ? $password : $plaintext; $output = ($plaintext === ENTERPRISE_NOT_HOOK) ? $password : $plaintext;
// If password already decrypt return same password.
$output = (empty($plaintext) === true) ? $password : $plaintext;
return sprintf( return sprintf(
'%s%s%s', '%s%s%s',
$wrappedBy, $wrappedBy,