Fix pagination

ofaj
jmontoyaa 9 years ago
parent 71f67f5b9d
commit 83ee53db15
  1. 3
      main/auth/courses.php
  2. 2
      main/inc/lib/course_category.lib.php

@ -61,7 +61,8 @@ if (isset($_GET['action']) && in_array($_GET['action'], $actions)) {
$action = Security::remove_XSS($_GET['action']);
}
$categoryCode = isset($_GET['category_code']) ? $_GET['category_code'] : 'ALL';
$categoryCode = isset($_GET['category_code']) && !empty($_GET['category_code']) ? $_GET['category_code'] : 'ALL';
$nameTools = CourseCategory::getCourseCatalogNameTools($action);
if (empty($nameTools)) {
$nameTools = get_lang('CourseManagement');

@ -577,7 +577,7 @@ class CourseCategory
* @param string $searchTerm
* @return int
*/
public static function countCoursesInCategory($category_code = "", $searchTerm = '')
public static function countCoursesInCategory($category_code = '', $searchTerm = '')
{
$tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);
$categoryCode = Database::escape_string($category_code);

Loading…
Cancel
Save