Harden the check slightly in case someone does something really silly and has a file of that name instead of a directory

git-svn-id: file:///svn/phpbb/trunk@5823 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames 2006-04-22 15:06:05 +00:00
parent 086ea06191
commit 68c349fdc1

View file

@ -280,7 +280,7 @@ class install_install extends module
foreach ($directories as $dir)
{
$write = $exists = true;
if (file_exists($phpbb_root_path . $dir))
if (file_exists($phpbb_root_path . $dir) && is_dir($phpbb_root_path . $dir))
{
if (!is_writeable($phpbb_root_path . $dir))
{