diff options
author | Aleksander Machniak <alec@alec.pl> | 2021-12-17 20:58:13 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2021-12-17 20:58:46 +0300 |
commit | 40d9228b9d896508dd21274eaa07461daffe5d43 (patch) | |
tree | 3b87645bb55247b660e1d627dd828816450e5d63 | |
parent | 918730b46f4c1c71344565adb8b76efe7b2c9bd9 (diff) |
Fix in_array_nocase() regression
-rw-r--r-- | program/lib/Roundcube/bootstrap.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/bootstrap.php b/program/lib/Roundcube/bootstrap.php index 6aaa444fa..5808b46b5 100644 --- a/program/lib/Roundcube/bootstrap.php +++ b/program/lib/Roundcube/bootstrap.php @@ -113,7 +113,7 @@ PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, function($err) { rcube::raise_error( */ function in_array_nocase($needle, $haystack) { - if (!is_string($heystack)) { + if (!is_string($needle) || !is_array($haystack)) { return false; } |