Fix the display of the device table header

This commit is contained in:
FusionPBX 2023-06-02 15:43:52 -06:00 committed by GitHub
parent 951d3f9321
commit f8662f20a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -480,6 +480,9 @@
echo " </tr>\n"; echo " </tr>\n";
} }
//define the previous profile key vendor
$previous_profile_key_vendor = null;
$x = 0; $x = 0;
foreach($device_profile_keys as $row) { foreach($device_profile_keys as $row) {
@ -494,7 +497,6 @@
$device_vendor = str_replace(' ', '_', $row['profile_key_vendor']); $device_vendor = str_replace(' ', '_', $row['profile_key_vendor']);
//set the column names //set the column names
$previous_profile_key_vendor = null;
if ($previous_profile_key_vendor != $row['profile_key_vendor']) { if ($previous_profile_key_vendor != $row['profile_key_vendor']) {
echo " <tr>\n"; echo " <tr>\n";
echo " <th class='vtablereq'>".$text['label-device_key_category']."</td>\n"; echo " <th class='vtablereq'>".$text['label-device_key_category']."</td>\n";
@ -803,4 +805,4 @@
//include the footer //include the footer
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>