|
|
@ -83,7 +83,7 @@ class Event |
|
|
|
Database::query($sql); |
|
|
|
Database::query($sql); |
|
|
|
|
|
|
|
|
|
|
|
// Auto subscribe |
|
|
|
// Auto subscribe |
|
|
|
$user_status = $userInfo['status'] == SESSIONADMIN ? 'sessionadmin' : $userInfo['status'] == COURSEMANAGER ? 'teacher' : $userInfo['status'] == DRH ? 'DRH' : 'student'; |
|
|
|
$user_status = $userInfo['status'] == SESSIONADMIN ? 'sessionadmin' : $userInfo['status'] == COURSEMANAGER ? 'teacher' : $userInfo['status'] == DRH ? 'drh' : 'student'; |
|
|
|
$autoSubscribe = api_get_setting($user_status.'_autosubscribe'); |
|
|
|
$autoSubscribe = api_get_setting($user_status.'_autosubscribe'); |
|
|
|
if ($autoSubscribe) { |
|
|
|
if ($autoSubscribe) { |
|
|
|
$autoSubscribe = explode('|', $autoSubscribe); |
|
|
|
$autoSubscribe = explode('|', $autoSubscribe); |
|
|
|