Commit 4b5fc8b8 authored by mikeytown2's avatar mikeytown2

#1001640: fix bug with views set_display.

parent 5cf2b2c7
......@@ -1256,6 +1256,14 @@ function _boost_view_insert($debug = FALSE, $nid = FALSE) {
continue;
}
// Make sure the view is a valid display
if (empty($view->display[$boost['page_id']])) {
continue;
}
// Set view display
$view->set_display($boost['page_id']);
$domains = array();
$domain_filter = FALSE;
if (module_exists('domain')) {
......@@ -1287,6 +1295,11 @@ function _boost_view_insert($debug = FALSE, $nid = FALSE) {
if (!is_object($view)) {
continue;
}
// Make sure the view is a valid display
if (empty($view->display[$boost['page_id']])) {
continue;
}
}
$first = FALSE;
$view->set_display($boost['page_id']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment