Skip to content

Commit

Permalink
Fix PHP warning when password_hosts is set, but is not an array (#5260)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed May 22, 2016
1 parent 2d12748 commit ea73d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/password/password.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit ea73d58

Please sign in to comment.