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

pull/5754/head
Aleksander Machniak 8 years ago
parent 2d12748662
commit ea73d58913

@ -369,7 +369,7 @@ class password extends rcube_plugin
// 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;
}

Loading…
Cancel
Save