From 0e8bcefe755d33af9ca3aecc30deddc353b915d6 Mon Sep 17 00:00:00 2001 From: Isaac Flores Date: Wed, 15 Jul 2009 22:46:46 +0200 Subject: [PATCH] [svn r22121] minor-logic changes-allow not create instance of class Database - (partial FS#4400) --- main/gradebook/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/gradebook/index.php b/main/gradebook/index.php index 50cb816f12..4e09f83164 100755 --- a/main/gradebook/index.php +++ b/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);