File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2050,9 +2050,14 @@ public function returnCoursesAndSessions(
2050
2050
$ params ['category_id ' ] = $ session_box ['category_id ' ];
2051
2051
$ params ['title ' ] = $ session_box ['title ' ];
2052
2052
$ params ['id_coach ' ] = $ coachId ;
2053
- $ userIdHash = UserManager::generateUserHash ($ coachId );
2054
- $ params ['coach_url ' ] = api_get_path (WEB_AJAX_PATH ).
2055
- 'user_manager.ajax.php?a=get_user_popup&hash= ' .$ userIdHash ;
2053
+ $ params ['coach_url ' ] = '' ;
2054
+
2055
+ if ($ coachId ) {
2056
+ $ userIdHash = UserManager::generateUserHash ($ coachId );
2057
+ $ params ['coach_url ' ] = api_get_path (WEB_AJAX_PATH ).
2058
+ 'user_manager.ajax.php?a=get_user_popup&hash= ' .$ userIdHash ;
2059
+ }
2060
+
2056
2061
$ params ['coach_name ' ] = !empty ($ session_box ['coach ' ]) ? $ session_box ['coach ' ] : null ;
2057
2062
$ params ['coach_avatar ' ] = UserManager::getUserPicture (
2058
2063
$ coachId ,
You can’t perform that action at this time.
0 commit comments