mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2025-01-05 15:32:10 +00:00
fix a notice message about incorrect array index
This commit is contained in:
parent
7d0e47cacc
commit
2fc8bc5092
@ -293,7 +293,7 @@ class JedcheckerRulesLanguage extends JEDcheckerRule
|
|||||||
// The code below detects incorrect format of numbered placeholders (e.g. "%1s" instead of "%1$s")
|
// 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 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)
|
if ($count)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user