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 20, 2016
1 parent 378d10b commit ab6fdfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/password/password.php
Original file line number Diff line number Diff line change
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 ab6fdfa

Please sign in to comment.