[trunk] merge bug:1523 / Compatibility with PHP 5.3

git-svn-id: http://piwigo.org/svn/trunk@5211 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
ddtddt
2010-03-21 07:56:53 +00:00
parent b309e74080
commit 3d05db24ee
+1 -1
View File
@@ -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');