improved error handling

This commit is contained in:
Roland Gruber 2005-09-27 12:47:22 +00:00
parent 3a208b38a3
commit a211a7838f
1 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,8 @@ function savePDFStructureDefinitions($scope,$definition) {
return 'no perms';
}
else {
$handle = fopen($struct_file,'w');
$handle = @fopen($struct_file,'w');
if (!$handle) return 'no perms';
$pdf_attributes = '';
foreach($_SESSION['currentPageDefinitions'] as $key => $value) {
if($key != 'type') {