From c02f877b59ece6cb572edaba87b711ecfbf1b2e2 Mon Sep 17 00:00:00 2001 From: Scott Walkinshaw Date: Tue, 2 Oct 2012 15:52:31 -0400 Subject: [PATCH] Fix callback reference --- lib/sidebar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sidebar.php b/lib/sidebar.php index e9841df..26c4e00 100644 --- a/lib/sidebar.php +++ b/lib/sidebar.php @@ -20,8 +20,8 @@ class Roots_Sidebar { $this->conditionals = $conditionals; $this->templates = $templates; - $conditionals = array_map($this->check_conditional_tag, $this->conditionals); - $templates = array_map($this->check_page_template, $this->templates); + $conditionals = array_map(array($this, 'check_conditional_tag'), $this->conditionals); + $templates = array_map(array($this, 'check_page_template'), $this->templates); if (in_array(true, $conditionals) || in_array(true, $templates)) { $this->display = false;