summaryrefslogtreecommitdiff
path: root/inverselink.php
diff options
context:
space:
mode:
Diffstat (limited to 'inverselink.php')
-rw-r--r--inverselink.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/inverselink.php b/inverselink.php
index d57022550c..e975931647 100644
--- a/inverselink.php
+++ b/inverselink.php
@@ -50,7 +50,9 @@ if ($linkto=='manage' && array_key_exists('GEDFact_assistant', WT_Module::getAct
//-- check for admin
$paramok = true;
- if (!empty($linktoid)) $paramok = WT_GedcomRecord::getInstance($linktoid)->canShow();
+ if (!empty($linktoid)) {
+ $paramok = WT_GedcomRecord::getInstance($linktoid)->canShow();
+ }
if ($action == "choose" && $paramok) {
echo '<form name="link" method="get" action="inverselink.php">';
@@ -82,10 +84,12 @@ if ($linkto=='manage' && array_key_exists('GEDFact_assistant', WT_Module::getAct
} else {
echo '<input data-autocomplete-type="OBJE" type="text" name="mediaid" id="mediaid" size="5">';
echo ' ', print_findmedia_link('mediaid', '1media');
- echo "</td></tr>";
+ echo '</td></tr>';
}
- if (!isset($linktoid)) $linktoid = "";
+ if (!isset($linktoid)) {
+ $linktoid = '';
+ }
echo '<tr><td class="descriptionbox">';
if ($linkto == "person") {