Skip to content
Snippets Groups Projects
Commit beb35342 authored by Jared Hancock's avatar Jared Hancock
Browse files

Fix possible crash if `i18n` folder is not readable

parent 30472267
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,7 @@ class Internationalization {
// Consider all subdirectories and .phar files in the base dir
$dirs = glob(I18N_DIR . '*', GLOB_ONLYDIR | GLOB_NOSORT);
$phars = glob(I18N_DIR . '*.phar', GLOB_NOSORT);
$phars = glob(I18N_DIR . '*.phar', GLOB_NOSORT) ?: array();
$installed = array();
foreach (array_merge($dirs, $phars) as $f) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment