diff options
author | ddtddt <ddtddt@piwigo.org> | 2010-03-21 07:51:07 +0000 |
---|---|---|
committer | ddtddt <ddtddt@piwigo.org> | 2010-03-21 07:51:07 +0000 |
commit | 3a0e03407ce763242f06fff8415488902872c376 (patch) | |
tree | d8e3ea63f9208d0890fec688e0985c8b08bc8639 /include | |
parent | f69595a9f0adb70804e94b6e637edb7e6d0349be (diff) |
[Branche2] bug:1523 / Compatibility with PHP 5.3
git-svn-id: http://piwigo.org/svn/branches/2.0@5210 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r-- | include/functions.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php index 6bd311f52..6b1f5fb56 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -457,7 +457,7 @@ function get_languages($target_charset = null) while ($file = readdir($dir)) { $path = PHPWG_ROOT_PATH.'language/'.$file; - if (!is_link($path) and file_exists($path.'/iso.txt')) + if (!is_link($path) and is_dir($path) and file_exists($path.'/iso.txt')) { list($language_name) = @file($path.'/iso.txt'); |