From: willcast Date: Thu, 16 Oct 2003 06:37:43 +0000 (+0000) Subject: - Testing... If you can read this.. I solved the problem (thanks to Martin)! :) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ff6c782016855919878822d925e14c2bfea4a959;p=moodle.git - Testing... If you can read this.. I solved the problem (thanks to Martin)! :) --- diff --git a/mod/glossary/dynalink.php b/mod/glossary/dynalink.php index 4f8e143645..388608a21d 100644 --- a/mod/glossary/dynalink.php +++ b/mod/glossary/dynalink.php @@ -12,17 +12,17 @@ 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