From: skodak Date: Sun, 21 May 2006 07:42:58 +0000 (+0000) Subject: proper initialisation of sqlsortkey SC#258; merged from MOODLE_16_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=54eca8f2a47683703a26f8959c5cd37752bb7ecd;p=moodle.git proper initialisation of sqlsortkey SC#258; merged from MOODLE_16_STABLE --- 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) {