Skip to content

Commit bb94d6c

Browse files
committed
fix about
1 parent 9b4ff0c commit bb94d6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/course_info/about.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
$token = Security::get_existing_token();
2222
$em = Database::getManager();
2323
//userID
24-
$user_id = api_get_user_id();
24+
$userId = api_get_user_id();
2525

2626
/** @var Course $course */
2727
$course = $em->find('ChamiloCoreBundle:Course', $courseId);
@@ -124,7 +124,7 @@
124124
'custom' => array_reverse($courseCustom),
125125
];
126126

127-
$subscriptionUser = CourseManager::is_user_subscribed_in_course($user_id, $course->getCode());
127+
$subscriptionUser = CourseManager::is_user_subscribed_in_course($userId, $course->getCode());
128128

129129
$plugin = BuyCoursesPlugin::create();
130130
$checker = $plugin->isEnabled();

0 commit comments

Comments
 (0)