diff --git a/mod/glossary/sql.php b/mod/glossary/sql.php index cacaa0bc0cf..53eb4e9310b 100644 --- a/mod/glossary/sql.php +++ b/mod/glossary/sql.php @@ -124,6 +124,10 @@ $fullpivot = 0; $printpivot = 0; + if (!isset($sqlsortkey)) { + $sqlsortkey = NULL; + } + $where = ''; if ($hook != 'ALL' and $hook != 'SPECIAL') { switch ($CFG->dbtype) {