Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

FIXED:

script was calling fix_course_sortorder() before courseorder have been renamed to coursecount.
  • Loading branch information...
commit f63823b3cc10c41b8c0be7defae6dbf2287ad10d 1 parent d7df380
authored January 14, 2004

Showing 1 changed file with 10 additions and 9 deletions. Show diff stats Hide diff stats

  1. 19  lib/db/postgres7.php
19  lib/db/postgres7.php
@@ -199,15 +199,6 @@ function main_upgrade($oldversion=0) {
199 199
         table_column("course", "", "sortorder", "integer", "10", "unsigned", "0", "", "category");
200 200
     }
201 201
 
202  
-    if ($oldversion < 2003080700) {
203  
-        notify("Cleaning up categories and course ordering...");
204  
-        if ($categories = get_categories()) {
205  
-            foreach ($categories as $category) {
206  
-                fix_course_sortorder($category->id);
207  
-            }
208  
-        }
209  
-    }
210  
-
211 202
     if ($oldversion < 2003081502) {
212 203
         execute_sql(" CREATE TABLE {$CFG->prefix}scale (
213 204
                          id SERIAL PRIMARY KEY,
@@ -234,6 +225,16 @@ function main_upgrade($oldversion=0) {
234 225
         table_column("course_categories", "courseorder", "coursecount", "integer", "10", "unsigned", "0");
235 226
     }
236 227
 
  228
+    if ($oldversion < 2003080700) {
  229
+        notify("Cleaning up categories and course ordering...");
  230
+        if ($categories = get_categories()) {
  231
+            foreach ($categories as $category) {
  232
+                fix_course_sortorder($category->id);
  233
+            }
  234
+        }
  235
+    }
  236
+
  237
+
237 238
     if ($oldversion < 2003082001) {
238 239
         table_column("course", "", "showgrades", "integer", "2", "unsigned", "1", "", "format");
239 240
     }

0 notes on commit f63823b

Please sign in to comment.
Something went wrong with that request. Please try again.