]> git.mjollnir.org Git - moodle.git/commitdiff
accesslib: build_context_path() remove $temptable for Oracle too
authormartinlanghoff <martinlanghoff>
Tue, 4 Dec 2007 06:25:25 +0000 (06:25 +0000)
committermartinlanghoff <martinlanghoff>
Tue, 4 Dec 2007 06:25:25 +0000 (06:25 +0000)
The removal of $temptable was incomplete - and so build_context_path()
was broken on Oracle. MDL-11347

lib/accesslib.php

index 1f95fa74f635efa416263528b6cf45e9597319eb..6be26882ca65909e9da72e78cc7718c7e8866d24 100755 (executable)
@@ -4720,10 +4720,10 @@ function build_context_path($force=false, $feedback=false) {
         $updatesql = "UPDATE {$CFG->prefix}context ct
                          SET (ct.path, ct.depth) =
                              (SELECT temp.path, temp.depth
-                                FROM {$CFG->prefix}$temptable temp
+                                FROM {$CFG->prefix}context_temp temp
                                WHERE temp.id=ct.id)
                        WHERE EXISTS (SELECT 'x'
-                                       FROM {$CFG->prefix}$temptable temp
+                                       FROM {$CFG->prefix}context_temp temp
                                        WHERE temp.id = ct.id)";
     } else {
         $updatesql = "UPDATE {$CFG->prefix}context