diff --git a/plugins/password/password.php b/plugins/password/password.php index f84dc8f0d82..520f2504e0a 100644 --- a/plugins/password/password.php +++ b/plugins/password/password.php @@ -369,7 +369,7 @@ private function check_host_login_exceptions() // Host exceptions $hosts = $rcmail->config->get('password_hosts'); - if (!empty($hosts) && !in_array($_SESSION['storage_host'], $hosts)) { + if (!empty($hosts) && !in_array($_SESSION['storage_host'], (array) $hosts)) { return false; }