MDL-26414 gloosary - fix wrong init introduced by MDL-26371
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 15 Feb 2011 09:53:23 +0000 (10:53 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 15 Feb 2011 09:53:23 +0000 (10:53 +0100)
mod/glossary/sql.php

index de99771..6298f80 100644 (file)
     $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":
     default:
         $sqlselect  = "SELECT ge.*, ge.concept AS glossarypivot";
         $sqlfrom    = "FROM {glossary_entries} ge";
-        // For cases needing inner view
-        $sqlwrapheader = '';
-        $sqlwrapfooter = '';
 
         $where = '';
         $fullpivot = 0;