From 418b3b6e98d4f6f9db1db9e728febb8ba65b2eef Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Tue, 15 Feb 2011 10:53:23 +0100 Subject: [PATCH] MDL-26414 gloosary - fix wrong init introduced by MDL-26371 --- mod/glossary/sql.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mod/glossary/sql.php b/mod/glossary/sql.php index de997716d56..6298f8039b3 100644 --- a/mod/glossary/sql.php +++ b/mod/glossary/sql.php @@ -13,6 +13,10 @@ $sqlsortkey = NULL; $textlib = textlib_get_instance(); + // For cases needing inner view + $sqlwrapheader = ''; + $sqlwrapfooter = ''; + /// Calculate the SQL sortkey to be used by the SQL statements later switch ( $sortkey ) { case "CREATION": @@ -134,9 +138,6 @@ default: $sqlselect = "SELECT ge.*, ge.concept AS glossarypivot"; $sqlfrom = "FROM {glossary_entries} ge"; - // For cases needing inner view - $sqlwrapheader = ''; - $sqlwrapfooter = ''; $where = ''; $fullpivot = 0; -- 2.11.4.GIT