ajoute un test sur l'ouverture correct du dossier
This commit is contained in:
parent
945e7f209b
commit
4eb1b70db4
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user