Update device_profile_edit.php

This commit is contained in:
Nate 2019-09-23 14:16:38 -06:00
parent b4ac4a8426
commit 9e1c6a257a
1 changed files with 6 additions and 4 deletions

View File

@ -217,10 +217,12 @@
//get the vendor count
$vendor_count = 0;
foreach($device_profile_keys as $row) {
if ($previous_vendor != $row['profile_key_vendor']) {
$previous_vendor = $row['profile_key_vendor'];
$vendor_count++;
if (is_array($device_profile_keys) && @sizeof($device_profile_keys) != 0) {
foreach($device_profile_keys as $row) {
if ($previous_vendor != $row['profile_key_vendor']) {
$previous_vendor = $row['profile_key_vendor'];
$vendor_count++;
}
}
}