directories where also offered as pdf structure files.

This commit is contained in:
duergner 2004-05-30 13:52:42 +00:00
parent c1735aecc6
commit 058a516e8b
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}