mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-11-17 02:25:10 +00:00
correct variable name
This commit is contained in:
parent
606fb5225c
commit
8f1bb04d8d
@ -81,20 +81,16 @@ class JedcheckerRulesErrorreporting extends JEDcheckerRule
|
||||
$content = (array) file($file);
|
||||
|
||||
// Get the functions to look for
|
||||
$encodings = explode(',', $this->params->get('errorreportings'));
|
||||
|
||||
foreach ($encodings as $i => $encoding)
|
||||
{
|
||||
$encodings[$i] = trim($encoding);
|
||||
}
|
||||
$errorreportings = explode(',', $this->params->get('errorreportings'));
|
||||
$errorreportings = array_map('trim', $errorreportings);
|
||||
|
||||
$found = false;
|
||||
|
||||
foreach ($content as $i => $line)
|
||||
{
|
||||
foreach ($encodings as $encoding)
|
||||
foreach ($errorreportings as $errorreporting)
|
||||
{
|
||||
$pos_1 = stripos($line, $encoding);
|
||||
$pos_1 = stripos($line, $errorreporting);
|
||||
|
||||
if ($pos_1 !== false)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user