From 762144823bdf98424f96d601ad4437db9ec3a0af Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Thu, 31 Aug 2017 21:48:24 +0000 Subject: [PATCH] Bug 19230: Preventing warn when deleting course To test: 1) Ensure UseCourseReserves is enabled 2) Go to Course Reserves, create a course 3) Delete course 4) Notice warn 5) Apply patch 6) Create a course again and delete it 7) Notice no warn Sponsored-by: Catalyst IT Signed-off-by: Katrin Fischer --- course_reserves/mod_course.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course_reserves/mod_course.pl b/course_reserves/mod_course.pl index 844d157dd1..8d83a01088 100755 --- a/course_reserves/mod_course.pl +++ b/course_reserves/mod_course.pl @@ -40,7 +40,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( my $action = $cgi->param('action') || ''; if ( $action eq 'del' ) { - DelCourse( $cgi->param('course_id') ); + DelCourse( scalar $cgi->param('course_id') ); print $cgi->redirect("/cgi-bin/koha/course_reserves/course-reserves.pl"); } else { my %params; -- 2.11.0