# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- 2723
+++ 2724
@@ -737,11 +737,14 @@
   if (BOOST_FLUSH_VIEWS && module_exists('views')) {
     $GLOBALS['_boost_router_item'] = isset($GLOBALS['_boost_router_item']) ? $GLOBALS['_boost_router_item'] : _boost_get_menu_router();
     $router_item = $GLOBALS['_boost_router_item'];
+
+    if (isset($router_item['page_id'])) {
     $relationship = array();
     $relationship[] = array('page_callback' => $router_item['page_callback'], 'page_type' => $router_item['page_type'], 'page_id' => $router_item['page_id']);
     boost_set_base_dir_in_array($data);
     $data = array_merge($data, boost_cache_get_node_relationships($relationship));
   }
+  }
 
   // Flush the cache
   $flushed = 0;
