|
|
@@ -346,7 +346,9 @@
|
|
|
if ((Request::is('course_member') || Request::is('rates')) && (isset($_GET["id"]) || isset($_GET["member_id"])))
|
|
|
{
|
|
|
$course_id = isset($_GET["id"]) ? $_GET["id"] : (isset($_GET["member_id"]) ? $_GET["member_id"] : 0);
|
|
|
- $type = \App\Models\Course::findOrFail($course_id)->type;
|
|
|
+ try {
|
|
|
+ $type = \App\Models\Course::findOrFail($course_id)->type;
|
|
|
+ } catch (\Throwable $th) {}
|
|
|
}
|
|
|
@endphp
|
|
|
@foreach($iscritti_types as $iscritto_type)
|