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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorMichaelRoosz <michael.roosz@web.de>2022-04-25 12:02:49 +0300
committerGitHub <noreply@github.com>2022-04-25 12:02:49 +0300
commite7febeb860fef1c9cf45d439c17f280a17327dd4 (patch)
tree55059dd1f4c77f8b833a2525f2ab556c668e109e /libs
parent5f376f75af1a166fa8e66fc6843e7e1f30cee4d4 (diff)
Fix some "Passing null to parameter" warnings (#19135)
* Fix "passing null to parameter" errors * Fix "passing null to parameter" error * Fix "passing null to parameter" errors * Fix "passing null to parameter" error * Update fix for "passing null to parameter" error Co-authored-by: Michael Roosz <michael.roosz@check24.de>
Diffstat (limited to 'libs')
-rw-r--r--libs/HTML/QuickForm2/Rule/Nonempty.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/HTML/QuickForm2/Rule/Nonempty.php b/libs/HTML/QuickForm2/Rule/Nonempty.php
index 2f541c0088..aeb03fc704 100644
--- a/libs/HTML/QuickForm2/Rule/Nonempty.php
+++ b/libs/HTML/QuickForm2/Rule/Nonempty.php
@@ -93,7 +93,7 @@ class HTML_QuickForm2_Rule_Nonempty extends HTML_QuickForm2_Rule
} elseif (is_array($value)) {
return count(array_filter($value, 'strlen')) >= $this->getConfig();
} else {
- return (bool)strlen($value);
+ return (bool)strlen($value ?? '');
}
}