From ff6c782016855919878822d925e14c2bfea4a959 Mon Sep 17 00:00:00 2001 From: willcast Date: Thu, 16 Oct 2003 06:37:43 +0000 Subject: [PATCH] - Testing... If you can read this.. I solved the problem (thanks to Martin)! :) --- mod/glossary/dynalink.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5