summaryrefslogtreecommitdiff
path: root/modules_v3/GEDFact_assistant/_CENS/addnoteaction_assisted.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules_v3/GEDFact_assistant/_CENS/addnoteaction_assisted.php')
-rw-r--r--modules_v3/GEDFact_assistant/_CENS/addnoteaction_assisted.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/modules_v3/GEDFact_assistant/_CENS/addnoteaction_assisted.php b/modules_v3/GEDFact_assistant/_CENS/addnoteaction_assisted.php
index 2ffb3fb03f..ca56f94806 100644
--- a/modules_v3/GEDFact_assistant/_CENS/addnoteaction_assisted.php
+++ b/modules_v3/GEDFact_assistant/_CENS/addnoteaction_assisted.php
@@ -25,15 +25,15 @@
//-- create a shared note record from the incoming variables
-$newgedrec = "0 @XREF@ NOTE\n";
+$newgedrec = "0 @XREF@ NOTE\n";
if (isset($_REQUEST['EVEN'])) $EVEN = $_REQUEST['EVEN'];
-if (!empty($EVEN) && count($EVEN)>0) {
+if (!empty($EVEN) && count($EVEN) > 0) {
$newgedrec .= "1 DATA\n";
- $newgedrec .= "2 EVEN ".implode(",", $EVEN)."\n";
- if (!empty($EVEN_DATE)) $newgedrec .= "3 DATE ".$EVEN_DATE."\n";
- if (!empty($EVEN_PLAC)) $newgedrec .= "3 PLAC ".$EVEN_PLAC."\n";
- if (!empty($AGNC)) $newgedrec .= "2 AGNC ".$AGNC."\n";
+ $newgedrec .= "2 EVEN " . implode(",", $EVEN) . "\n";
+ if (!empty($EVEN_DATE)) $newgedrec .= "3 DATE " . $EVEN_DATE . "\n";
+ if (!empty($EVEN_PLAC)) $newgedrec .= "3 PLAC " . $EVEN_PLAC . "\n";
+ if (!empty($AGNC)) $newgedrec .= "2 AGNC " . $AGNC . "\n";
}
if (isset($_REQUEST['ABBR'])) $ABBR = $_REQUEST['ABBR'];
if (isset($_REQUEST['TITL'])) $TITL = $_REQUEST['TITL'];
@@ -53,10 +53,10 @@ global $pid;
if (!empty($NOTE)) {
$newlines = preg_split("/\r?\n/", $NOTE, -1);
- for ($k=0; $k<count($newlines); $k++) {
- if ($k==0 && count($newlines)>1) {
+ for ($k = 0; $k < count($newlines); $k++) {
+ if ($k == 0 && count($newlines) > 1) {
$newgedrec = "0 @XREF@ NOTE $newlines[$k]\n";
- } else if ($k==0) {
+ } else if ($k == 0) {
$newgedrec = "0 @XREF@ NOTE $newlines[$k]\n1 CONT\n";
} else {
$newgedrec .= "1 CONT $newlines[$k]\n";
@@ -73,7 +73,7 @@ if (!empty($AUTH)) $newgedrec .= "1 AUTH $AUTH\n";
if (!empty($PUBL)) {
$newlines = preg_split("/\r?\n/", $PUBL, -1, PREG_SPLIT_NO_EMPTY);
foreach ($newlines as $k=>$line) {
- if ($k==0) {
+ if ($k == 0) {
$newgedrec .= "1 PUBL $line\n";
} else {
$newgedrec .= "2 CONT $line\n";
@@ -87,7 +87,7 @@ if (!empty($NOTE)) {
if ($pid_array != '') {
$record = WT_GedcomRecord::createRecord($newgedrec, WT_GED_ID);
} else {
- $record='';
+ $record = '';
echo '<div class="indent">No individuals entered, close and try again </div>';
}