Skip to content

Commit 13f196e

Browse files
committed
Add missing $courseCode
1 parent d467dae commit 13f196e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main/inc/ajax/announcement.ajax.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
*/
77
require_once __DIR__.'/../global.inc.php';
88

9-
$action = isset($_REQUEST['a']) ? $_REQUEST['a'] : null;
9+
$action = $_REQUEST['a'] ?? null;
1010

1111
$isAllowedToEdit = api_is_allowed_to_edit();
1212
$courseInfo = api_get_course_info();
13+
$courseCode = api_get_course_id();
1314
$courseId = api_get_course_int_id();
1415
$groupId = api_get_group_id();
1516
$sessionId = api_get_session_id();

0 commit comments

Comments
 (0)