ICU chain of normalizers and tokenizers half-way implemented
[pazpar2-moved-to-github.git] / src / database.c
index f43cc75..2553b7c 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: database.c,v 1.24 2007-04-22 15:00:56 adam Exp $
+/* $Id: database.c,v 1.26 2007-05-11 16:57:42 quinn Exp $
    Copyright (c) 2006-2007, Index Data.
 
 This file is part of Pazpar2.
@@ -29,6 +29,7 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include <sys/stat.h>
 
 #include "pazpar2.h"
+#include "host.h"
 #include "config.h"
 #include "settings.h"
 #include "http.h"
@@ -235,6 +236,8 @@ int session_grep_databases(struct session *se, struct database_criterion *cl,
     {
         if (p->settings && p->settings[PZ_ALLOW] && *p->settings[PZ_ALLOW]->value == '0')
             continue;
+        if (!p->settings[PZ_NAME])
+            continue;
         if (database_match_criteria(p->settings, cl))
         {
             (*fun)(se, p);