Skip to content

Commit

Permalink
[trunk] merge bug:1523 / Compatibility with PHP 5.3
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@5211 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
ddtddt committed Mar 21, 2010
1 parent b309e74 commit 3d05db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/functions.inc.php
Expand Up @@ -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');

Expand Down

0 comments on commit 3d05db2

Please sign in to comment.