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

skala
Isaac Flores 17 years ago
parent 032b624089
commit 0e8bcefe75
  1. 4
      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);

Loading…
Cancel
Save