fixed escape sequences

This commit is contained in:
Roland Gruber 2007-12-28 15:57:43 +00:00
parent 5f92d01605
commit 72426b7554
2 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ function createModulePDF($accounts,$pdf_structure="default") {
// We have a new section to start // We have a new section to start
if($entry['tag'] == "SECTION" && $entry['type'] == "open") { if($entry['tag'] == "SECTION" && $entry['type'] == "open") {
$name = $entry['attributes']['NAME']; $name = $entry['attributes']['NAME'];
if(preg_match("/^\_[a-zA-Z\_]+/",$name)) { if(preg_match("/^_[a-zA-Z_]+/",$name)) {
$section_headline = getSectionHeadline($entries[substr($name,1)][0]); $section_headline = getSectionHeadline($entries[substr($name,1)][0]);
} }
else { else {

View File

@ -486,7 +486,7 @@ foreach($_SESSION['currentPDFStructure'] as $key => $entry) {
<td colspan="2"> <td colspan="2">
<?php <?php
// Section headline is a value entry // Section headline is a value entry
if(preg_match("/^\_[a-zA-Z\_]+/",$name)) { if(preg_match("/^_[a-zA-Z_]+/",$name)) {
?> ?>
<select name="section_<?php echo $key;?>"> <select name="section_<?php echo $key;?>">
<!-- <?php echo $section_items;?> --> <!-- <?php echo $section_items;?> -->
@ -517,7 +517,7 @@ foreach($_SESSION['currentPDFStructure'] as $key => $entry) {
} }
// We have a section to end // We have a section to end
elseif($entry['tag'] == "SECTION" && $entry['type'] == "close") { elseif($entry['tag'] == "SECTION" && $entry['type'] == "close") {
if(preg_match("/^\_[a-zA-Z\_]+/",$name)) { if(preg_match("/^_[a-zA-Z_]+/",$name)) {
$section_headline = substr($name,1); $section_headline = substr($name,1);
} }
else { else {