From c6b6a95955e4db18d2ebce1c876bc2b5a9027f13 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Wed, 12 Oct 2016 16:09:05 +0200 Subject: [PATCH] Minor - Fix condition --- main/inc/lib/userportal.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/inc/lib/userportal.lib.php b/main/inc/lib/userportal.lib.php index 8b5837854d..69889e4d49 100755 --- a/main/inc/lib/userportal.lib.php +++ b/main/inc/lib/userportal.lib.php @@ -193,12 +193,12 @@ class IndexManager $show_course_link = true; $show_create_link = true; } else { - if (api_get_setting('allow_students_to_browse_courses') == 'true') { + if (api_get_setting('allow_students_to_browse_courses') === 'true') { $show_menu = true; $show_course_link = true; } - if (api_get_setting('allow_users_to_create_courses')) { + if (api_get_setting('allow_users_to_create_courses') === 'true') { $show_create_link = true; } } @@ -1023,7 +1023,7 @@ class IndexManager if (api_is_course_admin() || api_is_allowed_to_create_course()) { $show_course_link = true; } else { - if (api_get_setting('allow_students_to_browse_courses') == 'true') { + if (api_get_setting('allow_students_to_browse_courses') === 'true') { $show_course_link = true; } }