diff --git a/main/auth/courses.php b/main/auth/courses.php index 2412363497..d2c3eb7412 100644 --- a/main/auth/courses.php +++ b/main/auth/courses.php @@ -1,4 +1,4 @@ -0) @@ -312,7 +312,7 @@ function count_courses_in_category($category) { $tbl_course = Database::get_main_table(TABLE_MAIN_COURSE); $sql="SELECT * FROM $tbl_course WHERE category_code".(empty($category)?" IS NULL":"='".$category."'"); - $result=api_sql_query($sql); + $result=api_sql_query($sql,__FILE__,__LINE__); return Database::num_rows($result); } @@ -331,7 +331,7 @@ function browse_course_categories() echo "

".get_lang('CourseCategories').""; $sql= "SELECT * FROM $tbl_courses_nodes WHERE parent_id ".(empty($category)?"IS NULL":"='".$category."'")." GROUP BY code, parent_id ORDER BY tree_pos ASC"; - $result=api_sql_query($sql); + $result=api_sql_query($sql,__FILE__,__LINE__); echo "