瀏覽代碼

Fix this_section variable

Angel Fernando Quiroz Campos 9 年之前
父節點
當前提交
10ce9ae700
共有 1 個文件被更改,包括 3 次插入1 次删除
  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';