@ -60,9 +60,9 @@ class OC_FILES {
// files and directories
echo('<center><table cellpadding="6" cellspacing="0" border="0" class="browser">');
$filesfound=false;
if (is_dir($directory)) {
if ($dh = opendir($directory)) {
while (($file = readdir($dh)) !== false) {
if($file<>'.' and $file<>'..'){
$filesfound=true;