improved error handling
This commit is contained in:
parent
3a208b38a3
commit
a211a7838f
|
@ -105,7 +105,8 @@ function savePDFStructureDefinitions($scope,$definition) {
|
||||||
return 'no perms';
|
return 'no perms';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$handle = fopen($struct_file,'w');
|
$handle = @fopen($struct_file,'w');
|
||||||
|
if (!$handle) return 'no perms';
|
||||||
$pdf_attributes = '';
|
$pdf_attributes = '';
|
||||||
foreach($_SESSION['currentPageDefinitions'] as $key => $value) {
|
foreach($_SESSION['currentPageDefinitions'] as $key => $value) {
|
||||||
if($key != 'type') {
|
if($key != 'type') {
|
||||||
|
|
Loading…
Reference in New Issue