Browse Source

Fix this_section variable

Angel Fernando Quiroz Campos 9 years ago
parent
commit
10ce9ae700
1 changed files with 3 additions and 1 deletions
  1. 3 1
      user_portal.php

+ 3 - 1
user_portal.php

@@ -21,7 +21,9 @@ use ChamiloSession as Session;
 $cidReset = true;
 
 // For HTML editor repository.
-Session::erase('this_section');
+if (isset($_SESSION['this_section'])) {
+    unset($_SESSION['this_section']);
+}
 
 /* Included libraries */
 require_once './main/inc/global.inc.php';