From beb35342b1d4decee4a8200557f2abd4febf67be Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Wed, 19 Mar 2014 17:21:02 -0500 Subject: [PATCH] Fix possible crash if `i18n` folder is not readable --- include/class.i18n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.i18n.php b/include/class.i18n.php index 7335495d5..2c4d658f1 100644 --- a/include/class.i18n.php +++ b/include/class.i18n.php @@ -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) { -- GitLab