Number Translations: Add window title, fix php count warning.

This commit is contained in:
Nate
2020-01-06 12:28:31 -07:00
parent c1689920d5
commit 409abeed27
2 changed files with 3 additions and 6 deletions

View File

@@ -163,7 +163,7 @@
}
//add an empty row
$x = count($number_translation_details);
$x = is_array($number_translation_details) ? count($number_translation_details) : 0;
$number_translation_details[$x]['number_translation_uuid'] = $number_translation_uuid;
$number_translation_details[$x]['number_translation_detail_uuid'] = uuid();
$number_translation_details[$x]['number_translation_detail_regex'] = '';
@@ -175,6 +175,7 @@
$token = $object->create($_SERVER['PHP_SELF']);
//show the header
$document['title'] = $text['title-number_translation'];
require_once "resources/header.php";
//show the content
@@ -189,11 +190,6 @@
echo " <input type='submit' class='btn' value='".$text['button-save']."'>";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan='2'>\n";
echo " ".$text['description-number_translations']."<br /><br />\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";

View File

@@ -112,6 +112,7 @@
$token = $object->create($_SERVER['PHP_SELF']);
//additional includes
$document['title'] = $text['title-number_translations'];
require_once "resources/header.php";
//show the content