Fix PHP warning

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 8afaf266a0
commit cd4b25c86c
  1. 2
      main/inc/lib/tracking.lib.php

@ -6886,7 +6886,7 @@ class TrackingCourseLog
$table_user_field_values = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
$extraField = Database::get_main_table(TABLE_EXTRA_FIELD);
$result_extra_field = UserManager::get_extra_field_information($field_id);
$return = [];
if (!empty($users)) {
if ($result_extra_field['field_type'] == UserManager::USER_FIELD_TYPE_TAG) {
foreach ($users as $user_id) {

Loading…
Cancel
Save