diff --git a/includes/view.inc b/includes/view.inc index 09364898..ecad923e 100644 --- a/includes/view.inc +++ b/includes/view.inc @@ -685,7 +685,8 @@ function init_handlers() { */ function init_pager() { if (empty($this->query->pager)) { - if (!isset($this->query) && empty($this->query)) { + // If the query doesn't exist, initialize it. + if (empty($this->query)) { $this->init_query(); } $this->query->pager = $this->display_handler->get_plugin('pager');