Explorar o código

Fix this_section variable

Angel Fernando Quiroz Campos %!s(int64=9) %!d(string=hai) anos
pai
achega
10ce9ae700
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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';