Identation... If your are using a non supported locale, it wont try to loaded

This commit is contained in:
Arandi López 2017-05-29 13:44:25 -05:00
parent 076cde1a1b
commit 81082f9a07
8 changed files with 357 additions and 355 deletions

View File

@ -82,8 +82,10 @@ class ProfaneValidator
$dict = include($baseDictPath.$dictionary.'.php'); $dict = include($baseDictPath.$dictionary.'.php');
$badwords = array_merge($badwords, $dict); $badwords = array_merge($badwords, $dict);
} else { } else {
if (file_exists($dictionary)) {
$dict = include($dictionary); $dict = include($dictionary);
$badwords = array_merge($badwords, $dict); $badwords = array_merge($badwords, $dict);
} // else nothing is merged
} }
} }