]> git.mjollnir.org Git - moodle.git/commitdiff
Solve some notice with debug = on.
authorstronk7 <stronk7>
Thu, 20 May 2004 19:51:23 +0000 (19:51 +0000)
committerstronk7 <stronk7>
Thu, 20 May 2004 19:51:23 +0000 (19:51 +0000)
Thanks to skodak. Bug 1405.
(http://moodle.org/bugs/bug.php?op=show&bugid=1405)

mod/glossary/lib.php
mod/glossary/sql.php
mod/glossary/tabs.html
mod/glossary/view.php

index 71a40a8b05a8fa4ccaef9ad0efcdf9b83391f60f..961ad7023bc5cfe2f0b438dffbced08a7661ff0e 100644 (file)
@@ -1551,7 +1551,7 @@ global $CFG;
     $status = fwrite ($h,glossary_start_tag("INFO",1,true));
         fwrite ($h,glossary_full_tag("NAME",2,false,$glossary->name));
         fwrite ($h,glossary_full_tag("INTRO",2,false,$glossary->intro));
-        fwrite ($h,glossary_full_tag("STUDENTCANentry",2,false,$glossary->studentcanentry));
+        fwrite ($h,glossary_full_tag("STUDENTCANPOST",2,false,$glossary->studentcanpost));
         fwrite ($h,glossary_full_tag("ALLOWDUPLICATEDENTRIES",2,false,$glossary->allowduplicatedentries));
         fwrite ($h,glossary_full_tag("SHOWSPECIAL",2,false,$glossary->showspecial));
         fwrite ($h,glossary_full_tag("SHOWALPHABET",2,false,$glossary->showalphabet));
index 4e766355288eea84a149d1f23c81545a3bfe0210..cacaa0bc0cf2b4a863e8dc5a37d8ac4a1d3b959a 100644 (file)
     break;
     case GLOSSARY_AUTHOR_VIEW:
 
+        if (!isset($sqlsortkey)) {
+            $sqlsortkey = NULL;
+        }
+
         $where = '';
         switch ($CFG->dbtype) {
         case 'postgres7':
index 1ddf6c8bbf62c0cefb064f27fb10ec3ffacd82d0..4ec828ba5a434061053747ff2150eb82530668a4 100644 (file)
 /// printing header of the current tab
     echo '<center>';
     glossary_print_tabbed_table_start($data, $tab, $glossary_tCFG);
+    if (!isset($category)) {
+        $category = "";
+    }
     
     switch ($tab) {
         case GLOSSARY_CATEGORY_VIEW:
index 141c71f07df03e491973c68ff0bfcb0f06169d1f..acebd1313c7031475311df6dece459f38c577d41 100644 (file)
 /// printing the entries
     $entriesshown = 0;
     $currentpivot = '';
+    $ratingsmenuused = NULL;
+    $paging = NULL;
     $tableisopen = 0;
     if ( $hook == 'SPECIAL' ) {
         $alphabet = explode(",", get_string("alphabet"));