From 24939cec5401e479369cdb27aabf6d60073bc341 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 6 Oct 2015 11:01:23 -0700 Subject: [PATCH 01/11] Plugin: Logstats - prevent broken array scenario. Allow e_footer.php to echo to browser when required. --- e107_core/templates/footer_default.php | 13 ++++++----- e107_plugins/log/consolidate.php | 32 +++++++++++++++++++++----- 2 files changed, 33 insertions(+), 12 deletions(-) diff --git a/e107_core/templates/footer_default.php b/e107_core/templates/footer_default.php index ebd41f43f..b061d1f85 100644 --- a/e107_core/templates/footer_default.php +++ b/e107_core/templates/footer_default.php @@ -277,11 +277,11 @@ if (isset($footer_js) && is_array($footer_js)) } } -// Load e_footer.php files. -if (is_array($pref['e_footer_list'])) +// Load e_footer.php files. +if (!empty($pref['e_footer_list']) && is_array($pref['e_footer_list'])) { - ob_start(); - + //ob_start(); // sometimes raw HTML needs to be added at the bottom of every page. eg.