diff options
author | filip <filip.komar@gmail.com> | 2016-09-18 22:58:36 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2016-09-18 22:58:36 +0200 |
commit | aaa78172d8a46be8a1c3d35da13b399027d56b8f (patch) | |
tree | f23d66ba7bd6220d5fb81898b7ae767610d2f23e /langs/lib.php | |
parent | aa5f880acd5bd293cf53a745033ef487216999be (diff) | |
download | www-aaa78172d8a46be8a1c3d35da13b399027d56b8f.tar www-aaa78172d8a46be8a1c3d35da13b399027d56b8f.tar.gz www-aaa78172d8a46be8a1c3d35da13b399027d56b8f.tar.bz2 www-aaa78172d8a46be8a1c3d35da13b399027d56b8f.tar.xz www-aaa78172d8a46be8a1c3d35da13b399027d56b8f.zip |
better handling of invalid resource
Diffstat (limited to 'langs/lib.php')
-rw-r--r-- | langs/lib.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/langs/lib.php b/langs/lib.php index b984d3223..b00825781 100644 --- a/langs/lib.php +++ b/langs/lib.php @@ -89,6 +89,9 @@ function _po_diff($locale, $resource, $source_l = NULL, $path = NULL, $compared if (is_null($path)) { if (NULL == $source_l) { $source_l = read_translation_file('en', $resource); + if (FALSE == $source_l) { + $source_l = array(array()); + } } $target_l = read_translation_file($locale, $resource); } else { |