From efb64be39f638fe01ca536308c5e65bc14130ec3 Mon Sep 17 00:00:00 2001 From: Yoselyn Castillo Date: Fri, 24 May 2013 12:13:27 -0500 Subject: [PATCH] Re-submitting patch that closes #5989 --- main/inc/lib/userportal.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/inc/lib/userportal.lib.php b/main/inc/lib/userportal.lib.php index eb7b96f16a..586048c4bd 100644 --- a/main/inc/lib/userportal.lib.php +++ b/main/inc/lib/userportal.lib.php @@ -559,7 +559,7 @@ class IndexManager { // We display a subscription link if: // 1. it is allowed to register for the course and if the course is not already in the courselist of the user and if the user is identiefied // 2. - if ($user_identified && !in_array($course['code'], $courses_of_user)) { + if ($user_identified && !array_key_exists($course['code'], $courses_of_user)) { if ($course['subscribe'] == '1') { /*$courses_list_string .= '
'; $courses_list_string .= '';