Fix PHP warning when password_hosts is set, but is not an array (#5260)

pull/5265/head
Aleksander Machniak 9 years ago
parent 378d10b748
commit ab6fdfa8bc

@ -369,7 +369,7 @@ class password extends rcube_plugin
// Host exceptions // Host exceptions
$hosts = $rcmail->config->get('password_hosts'); $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; return false;
} }

Loading…
Cancel
Save