proper initialisation of sqlsortkey SC#258; merged from MOODLE_16_STABLE

This commit is contained in:
skodak
2006-05-21 07:42:58 +00:00
parent 902a9198b6
commit 54eca8f2a4
+1 -8
View File
@@ -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) {