summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/search/views_handler_filter_search.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/search/views_handler_filter_search.inc b/modules/search/views_handler_filter_search.inc
index b7fe035..4ed228d 100644
--- a/modules/search/views_handler_filter_search.inc
+++ b/modules/search/views_handler_filter_search.inc
@@ -163,6 +163,8 @@ class views_handler_filter_search extends views_handler_filter {
$placeholder = $this->placeholder();
$this->query->add_having_expression($this->options['group'], "COUNT(*) >= $placeholder", array($placeholder => $matches));
}
+ // Set to NULL to prevent PDO exception when views object is cached.
+ $this->search_query = NULL;
}
}