From 058a516e8bb5216b6a3342bd24e771ee1fbccd98 Mon Sep 17 00:00:00 2001 From: duergner Date: Sun, 30 May 2004 13:52:42 +0000 Subject: [PATCH] directories where also offered as pdf structure files. --- lam/lib/pdfstruct.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } }