Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2021-12-17 20:58:13 +0300
committerAleksander Machniak <alec@alec.pl>2021-12-17 20:58:46 +0300
commit40d9228b9d896508dd21274eaa07461daffe5d43 (patch)
tree3b87645bb55247b660e1d627dd828816450e5d63
parent918730b46f4c1c71344565adb8b76efe7b2c9bd9 (diff)
Fix in_array_nocase() regression
-rw-r--r--program/lib/Roundcube/bootstrap.php2
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;
}