31
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-06-05 06:50:47 +00:00

fix a notice message about incorrect array index

This commit is contained in:
Denis Ryabov 2021-07-11 17:30:49 +03:00
parent 7d0e47cacc
commit 2fc8bc5092

View File

@ -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)
{