From: stronk7 Date: Thu, 20 May 2004 19:51:23 +0000 (+0000) Subject: Solve some notice with debug = on. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=165278015e9ba3c335b0bbaa18cc3cb8730e62b1;p=moodle.git Solve some notice with debug = on. Thanks to skodak. Bug 1405. (http://moodle.org/bugs/bug.php?op=show&bugid=1405) --- diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index 71a40a8b05..961ad7023b 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -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)); diff --git a/mod/glossary/sql.php b/mod/glossary/sql.php index 4e76635528..cacaa0bc0c 100644 --- a/mod/glossary/sql.php +++ b/mod/glossary/sql.php @@ -84,6 +84,10 @@ break; case GLOSSARY_AUTHOR_VIEW: + if (!isset($sqlsortkey)) { + $sqlsortkey = NULL; + } + $where = ''; switch ($CFG->dbtype) { case 'postgres7': diff --git a/mod/glossary/tabs.html b/mod/glossary/tabs.html index 1ddf6c8bbf..4ec828ba5a 100644 --- a/mod/glossary/tabs.html +++ b/mod/glossary/tabs.html @@ -67,6 +67,10 @@ /// printing header of the current tab echo '
'; glossary_print_tabbed_table_start($data, $tab, $glossary_tCFG); + + if (!isset($category)) { + $category = ""; + } switch ($tab) { case GLOSSARY_CATEGORY_VIEW: diff --git a/mod/glossary/view.php b/mod/glossary/view.php index 141c71f07d..acebd1313c 100644 --- a/mod/glossary/view.php +++ b/mod/glossary/view.php @@ -279,6 +279,8 @@ /// printing the entries $entriesshown = 0; $currentpivot = ''; + $ratingsmenuused = NULL; + $paging = NULL; $tableisopen = 0; if ( $hook == 'SPECIAL' ) { $alphabet = explode(",", get_string("alphabet"));