]> git.mjollnir.org Git - moodle.git/commitdiff
- Testing... If you can read this.. I solved the problem (thanks to Martin)! :)
authorwillcast <willcast>
Thu, 16 Oct 2003 06:37:43 +0000 (06:37 +0000)
committerwillcast <willcast>
Thu, 16 Oct 2003 06:37:43 +0000 (06:37 +0000)
mod/glossary/dynalink.php

index 4f8e143645c06aac4bf6d7f57a45444f95fcb75b..388608a21d78a3286f18987d846db38817cd24fd 100644 (file)
     static $glossary;    //    even when dealing with the same glossary
     
         if ( !$glossary and !$glossaryid ) {
-            $PermissionGranted = 1;   // if it is the first call and no glossary was specify
+            $permissiongranted = 1;   // if it is the first call and no glossary was specify
         } elseif ( $glossaryid ) {
             if ( $glossary ) {   // if it is not the first call
                 if ( $glossary->id != $glossaryid ) {   // ...and the specified glossary is different from the previous call
-                    $PermissionGranted = 1;
+                    $permissiongranted = 1;
                 }
             } else {
-                $PermissionGranted = 1;   // if it is the first call and a glossary was specify
+                $permissiongranted = 1;   // if it is the first call and a glossary was specify
             }
         }
-        if ( $PermissionGranted ) {
+        if ( $permissiongranted ) {
             if ( !$glossaryid ) {  // If no glossary was specify, fetch the main glossary of the course
                 $glossary = get_record("glossary","course",$courseid,"mainglossary",1);
             } else {               // if a glossary as specify, fetch this one