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(
20502050 $ params ['category_id ' ] = $ session_box ['category_id ' ];
20512051 $ params ['title ' ] = $ session_box ['title ' ];
20522052 $ 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+
20562061 $ params ['coach_name ' ] = !empty ($ session_box ['coach ' ]) ? $ session_box ['coach ' ] : null ;
20572062 $ params ['coach_avatar ' ] = UserManager::getUserPicture (
20582063 $ coachId ,
You can’t perform that action at this time.
0 commit comments