Browse Source

[svn r22121] minor-logic changes-allow not create instance of class Database - (partial FS#4400)

Isaac Flores 15 years ago
parent
commit
0e8bcefe75
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/gradebook/index.php

+ 2 - 2
main/gradebook/index.php

@@ -727,10 +727,10 @@ if (( count($allcat) == 0) && ( count($alleval) == 0 ) && ( count($alllink) == 0
 //here we are in a sub category
 if ($category != '0') {
 	$cat=new Category();
-	$dblib=new Database();
+	//$dblib=new Database();
 		
 	$category_id=Security::remove_XSS($_GET['selectcat']);
-	$course_id=$dblib->get_course_by_category($category_id);
+	$course_id=Database::get_course_by_category($category_id);
 	$show_message=$cat->show_message_resource_delete($course_id);
 	if ($show_message=='') {
 		DisplayGradebook :: display_header_gradebook($cats[0], 0, $category_id, $is_course_admin, $is_platform_admin, $simple_search_form, false, true);