diff options
author | ddtddt <ddtddt@piwigo.org> | 2010-03-21 07:56:53 +0000 |
---|---|---|
committer | ddtddt <ddtddt@piwigo.org> | 2010-03-21 07:56:53 +0000 |
commit | 3d05db24eefa6251cf816098d06b1e2b1a16123d (patch) | |
tree | f5beb4729e6c4f90a189c6f5c9afd6c7eb251d30 /include | |
parent | b309e7408052aac0bc6a8bfb297ab3d320da4bda (diff) |
[trunk] merge bug:1523 / Compatibility with PHP 5.3
git-svn-id: http://piwigo.org/svn/trunk@5211 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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 c837232b7..0cd0659c4 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -410,7 +410,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'); |