From 3d66a2e84366abc3beb28850950271116aaeab73 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 27 Dec 2008 13:06:42 +0000 Subject: [PATCH] fixed changing of section titles --- lam/templates/pdfedit/pdfpage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/templates/pdfedit/pdfpage.php b/lam/templates/pdfedit/pdfpage.php index e09d924f..89eb5348 100644 --- a/lam/templates/pdfedit/pdfpage.php +++ b/lam/templates/pdfedit/pdfpage.php @@ -164,7 +164,7 @@ elseif(isset($_GET['add_new_field'])) { elseif(isset($_GET['change'])) { $alter = explode('_',$_GET['change']); $newvalue = $_GET['section_' . $alter[0]]; - if (isset($alter[1]) && ($alter[1] == 'item')) { + if (isset($alter[1]) && ($alter[1] == 'item') && ($newvalue[0] != '_')) { $newvalue = '_' . $newvalue; } $_SESSION['currentPDFStructure'][$alter[0]]['attributes']['NAME'] = $newvalue;