From 806dab4385b5825bd359140f54af3b2dcee15093 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Wed, 21 Feb 2007 11:57:28 +0000 Subject: [PATCH] Whoops. Missed setting $totalcount var --- course/search.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/course/search.php b/course/search.php index 4283d76f4c..047f56d81f 100644 --- a/course/search.php +++ b/course/search.php @@ -124,6 +124,7 @@ // run through blocks and get (unique) courses $courses = array(); + $totalcount = 0; foreach ($blocks as $block) { $courseid = $block->pageid; if ($courseid==0) { @@ -133,6 +134,7 @@ error( "Could not read data for courseid=$courseid" ); } $courses[$courseid] = $course; + $totalcount++; } } // get list of courses containing modules if required @@ -144,6 +146,7 @@ // run through modules and get (unique) courses $courses = array(); + $totalcount = 0; foreach ($modules as $module) { $courseid = $module->course; if ($courseid==0) { @@ -153,6 +156,7 @@ error( "Could not read data for courseid=$courseid" ); } $courses[$courseid] = $course; + $totalcount++; } } else { -- 2.39.5