Commit 7b1ad56a authored by bgm's avatar bgm

Issue #1677512 : in some situations, hook_exit might cache admin pages. (fix php notices)

parent eafa2705
......@@ -263,10 +263,10 @@ function boost_exit($destination = NULL) {
}
}
if ($_boost['cache_this'] == FALSE) {
if (isset($_boost['cache_this']) && $_boost['cache_this'] == FALSE) {
return;
}
elseif (!$_boost['is_cacheable']) {
elseif (!isset($_boost['is_cacheable']) || !$_boost['is_cacheable']) {
return;
}
elseif ($_boost['menu_item']['status'] != 200) {
......
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