[LON-CAPA-cvs] cvs: loncom /interface lonmysql.pm

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 05 Aug 2002 12:43:18 -0000


matthew		Mon Aug  5 08:43:18 2002 EDT

  Modified files:              
    /loncom/interface	lonmysql.pm 
  Log:
  Handle empty @fulltext list.
  
  
Index: loncom/interface/lonmysql.pm
diff -u loncom/interface/lonmysql.pm:1.3 loncom/interface/lonmysql.pm:1.4
--- loncom/interface/lonmysql.pm:1.3	Tue Jul 30 14:26:40 2002
+++ loncom/interface/lonmysql.pm	Mon Aug  5 08:43:18 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # MySQL utility functions
 #
-# $Id: lonmysql.pm,v 1.3 2002/07/30 18:26:40 matthew Exp $
+# $Id: lonmysql.pm,v 1.4 2002/08/05 12:43:18 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -570,7 +570,7 @@
         # skip blank items.
         push (@Columns,$col_des) if ($col_des ne '');
     }
-    if (exists($table_des->{'fulltext'})) {
+    if (exists($table_des->{'fulltext'}) && (@{$table_des->{'fulltext'}})) {
         push (@Columns,'FULLTEXT ('.join(',',@{$table_des->{'fulltext'}}).')');
     }
     $request .= "(".join(", ",@Columns).") ";