From 0ef20bfb319e2277dee4230ceea34a5b5d69db9e Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Mon, 16 Aug 2010 12:34:43 +0200 Subject: [PATCH] Disable configuration of facets when no facet count is set. --- src/client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client.c b/src/client.c index 5a73db2..8f4946d 100644 --- a/src/client.c +++ b/src/client.c @@ -561,6 +561,9 @@ static int client_set_facets_request(struct client *cl, ZOOM_connection link) { struct session_database *sdb = client_get_database(cl); const char *opt_facet_term_sort = session_setting_oneval(sdb, PZ_TERMLIST_TERM_SORT); const char *opt_facet_term_count = session_setting_oneval(sdb, PZ_TERMLIST_TERM_COUNT); + /* Disable when no count is set */ + if (opt_facet_term_count == 0) + return 0; struct session *session = client_get_session(cl); struct conf_service *service = session->service; int num = service->num_metadata; -- 1.7.10.4