From 2fc8bc5092c17a29d22b77dfba6622ad7cf7b08a Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Sun, 11 Jul 2021 17:30:49 +0300 Subject: [PATCH] fix a notice message about incorrect array index --- .../components/com_jedchecker/libraries/rules/language.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_jedchecker/libraries/rules/language.php b/administrator/components/com_jedchecker/libraries/rules/language.php index 242821d..59f1fda 100644 --- a/administrator/components/com_jedchecker/libraries/rules/language.php +++ b/administrator/components/com_jedchecker/libraries/rules/language.php @@ -293,7 +293,7 @@ class JedcheckerRulesLanguage extends JEDcheckerRule // The code below detects incorrect format of numbered placeholders (e.g. "%1s" instead of "%1$s") // Count numbered placeholders in the string (e.g. "%1s") - $count = preg_match_all('/(?<=^|[^%])%(\d+)\w/', $value, $matches); + $count = preg_match_all('/(?<=^|[^%])%(\d+)\w/', $value, $matches, PREG_SET_ORDER); if ($count) {