From 54eca8f2a47683703a26f8959c5cd37752bb7ecd Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 21 May 2006 07:42:58 +0000 Subject: [PATCH] proper initialisation of sqlsortkey SC#258; merged from MOODLE_16_STABLE --- mod/glossary/sql.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/mod/glossary/sql.php b/mod/glossary/sql.php index e494176eff..1d9a822860 100644 --- a/mod/glossary/sql.php +++ b/mod/glossary/sql.php @@ -11,6 +11,7 @@ /// Initialise some variables $sqlorderby = ''; + $sqlsortkey = NULL; /// Pivot is the field that set the break by groups (category, initial, author name, etc) @@ -84,10 +85,6 @@ break; case GLOSSARY_AUTHOR_VIEW: - if (!isset($sqlsortkey)) { - $sqlsortkey = NULL; - } - $where = ''; switch ($CFG->dbtype) { case 'postgres7': @@ -124,10 +121,6 @@ $fullpivot = 0; $printpivot = 0; - if (!isset($sqlsortkey)) { - $sqlsortkey = NULL; - } - $where = ''; if ($hook != 'ALL' and $hook != 'SPECIAL') { switch ($CFG->dbtype) { -- 2.39.5