ajoute un test sur l'ouverture correct du dossier

This commit is contained in:
Rodolphe Quiedeville 2003-06-18 16:41:04 +00:00
parent 945e7f209b
commit 4eb1b70db4

View File

@ -151,6 +151,9 @@ if ($socid > 0)
$handle=opendir($upload_dir); $handle=opendir($upload_dir);
if ($handle)
{
print '<table width="100%" border="1" cellpadding="3" cellspacing="0">'; print '<table width="100%" border="1" cellpadding="3" cellspacing="0">';
while (($file = readdir($handle))!==false) while (($file = readdir($handle))!==false)
@ -173,9 +176,7 @@ if ($socid > 0)
print "</table>"; print "</table>";
closedir($handle); closedir($handle);
}
} }
else else
{ {