From 79530c7af54cd36bfd1c55be27ff48d9aca67ef4 Mon Sep 17 00:00:00 2001 From: Gerald Simane Date: Fri, 26 Jun 2009 08:03:23 +0000 Subject: [PATCH] --- include/moodle_course.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/moodle_course.class.php b/include/moodle_course.class.php index e2c9d3b13..2d413d673 100644 --- a/include/moodle_course.class.php +++ b/include/moodle_course.class.php @@ -486,7 +486,7 @@ class moodle_course extends basis_db if($this->db_query($qry)) { - if($row = pg_fetch_object()) + if($row = $this->db_fetch_object()) { $semester = $row->semester; $stg = $row->stg; @@ -611,7 +611,6 @@ class moodle_course extends basis_db "INSERT INTO public.mdl_block_instance(blockid, pageid, pagetype, position, weight, visible) VALUES(18, $this->mdl_course_id, 'course-view', 'r', 0, 1);". //Neueste Nachrichten "INSERT INTO public.mdl_block_instance(blockid, pageid, pagetype, position, weight, visible) VALUES(8, $this->mdl_course_id, 'course-view', 'r', 1, 1);". //Kalender / Bald aktuell... "INSERT INTO public.mdl_block_instance(blockid, pageid, pagetype, position, weight, visible) VALUES(22, $this->mdl_course_id, 'course-view', 'r', 2, 1);"; //Neueste Aktivit�ten - if(!pg_query($this->conn_moodle, $qry)) { pg_query($this->conn_moodle, 'ROLLBACK');