mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-31 21:51:46 +00:00
Check file is correctly read
This commit is contained in:
parent
0c51f8a60b
commit
6e6b1224a0
@ -93,6 +93,12 @@ class JedcheckerRulesLanguage extends JEDcheckerRule
|
|||||||
}
|
}
|
||||||
|
|
||||||
$lines = file($file);
|
$lines = file($file);
|
||||||
|
|
||||||
|
if ($lines === false)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$nLines = count($lines);
|
$nLines = count($lines);
|
||||||
$keys = array();
|
$keys = array();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user