|
|
@ -1632,6 +1632,7 @@ class SessionManager |
|
|
|
$sendSubscriptionNotification = false, |
|
|
|
$sendSubscriptionNotification = false, |
|
|
|
$status = 0 |
|
|
|
$status = 0 |
|
|
|
) { |
|
|
|
) { |
|
|
|
|
|
|
|
$id = (int) $id; |
|
|
|
$status = (int) $status; |
|
|
|
$status = (int) $status; |
|
|
|
$coachId = (int) $coachId; |
|
|
|
$coachId = (int) $coachId; |
|
|
|
$sessionCategoryId = (int) $sessionCategoryId; |
|
|
|
$sessionCategoryId = (int) $sessionCategoryId; |
|
|
@ -1679,7 +1680,7 @@ class SessionManager |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$sessionInfo = self::get_session_by_name($name); |
|
|
|
$sessionInfo = self::get_session_by_name($name); |
|
|
|
$exists = false; |
|
|
|
$exists = false; |
|
|
|
if (!empty($sessionInfo) && $sessionInfo['id'] !== $id) { |
|
|
|
if (!empty($sessionInfo) && (int) $sessionInfo['id'] !== $id) { |
|
|
|
$exists = true; |
|
|
|
$exists = true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|