diff --git a/lam/lib/pdfstruct.inc b/lam/lib/pdfstruct.inc index d0b1dc4f..7551a669 100644 --- a/lam/lib/pdfstruct.inc +++ b/lam/lib/pdfstruct.inc @@ -28,7 +28,7 @@ function getPDFStructureDefinitions($scope = "user") { $return = array(); $dirHandle = opendir($_SESSION['lampath'] . '/config/pdf/' . $scope . '/'); while($file = readdir($dirHandle)) { - if($file != '.' && $file != '..' && $file != 'default.xml') { + if(!is_dir($file) && $file != '.' && $file != '..' && $file != 'default.xml') { array_push($return, substr($file,0,strlen($file)-4)); } }