'GET']);
- echo form_dropdown('trainer_id', $trainers, strval($trainer_id), ['class' => 'form-control', 'style' => 'width:unset!important;display:unset!important;margin-left:-10px;']);
+ echo form_dropdown('trainer_id', $trainers, strval($trainer_id), ['class' => 'form-control', 'style' => 'width:unset!important;display:unset!important;']);
echo form_submit(null, lang('common_lang.btn_search'), ['class' => 'btn btn-primary', 'style' => 'vertical-align:unset!important;']); ?>
- =$userCourseMax['date_begin']?> |
- =$userCourseMax['date_end']?> |
- =$user_course_status[$userCourseMax['fk_status']]['name']?> |
+ =isset($userCourseMax)?$userCourseMax['date_begin']:null?> |
+ =isset($userCourseMax)?$userCourseMax['date_end']:null?> |
+ =isset($userCourseMax)?$user_course_status[$userCourseMax['fk_status']]['name']:null?> |
@@ -98,15 +98,15 @@
=lang('plafor_lang.title_course_plan_status')?>
-
= $course_plans[$userCourseMax['fk_course_plan']]['official_name'] ?>
-
+
= isset($userCourseMax)?$course_plans[$userCourseMax['fk_course_plan']]['official_name']:null ?>
+
\ No newline at end of file
diff --git a/orif/plafor/Views/user_course/view.php b/orif/plafor/Views/user_course/view.php
index df8a029d..39900c5d 100644
--- a/orif/plafor/Views/user_course/view.php
+++ b/orif/plafor/Views/user_course/view.php
@@ -35,8 +35,8 @@
|| ($_SESSION['user_access'] == config('\User\Config\UserConfig')->access_lvl_trainer && in_array($_SESSION['user_id'], $trainers_id))
|| ($_SESSION['user_access'] == config('\User\Config\UserConfig')->access_level_apprentice && $user_course['fk_user'] == $apprentice['id'])): ?>