From 2c34acd0fd9ada809ccba4f31d380a72ca536c74 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Mon, 7 May 2018 02:14:56 -0600 Subject: [PATCH] Fix complex component empty detection --- lib/themefunctions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/themefunctions.php b/lib/themefunctions.php index d9e23b5..29336c9 100644 --- a/lib/themefunctions.php +++ b/lib/themefunctions.php @@ -154,7 +154,7 @@ function get_complex_component($name, $context = null, $include = []) { if (count($include) == 0) { return $content; } - + $filtered = []; foreach ($include as $i) { if (array_key_exists($i, $content)) { @@ -170,7 +170,7 @@ function is_complex_empty($name, $context = null) { if (isset($_GET['edit'])) { return false; } - $comp = get_complex_component($name, $context, false); + $comp = get_complex_component($name, $context); foreach ($comp as $c => $v) { if (isset($v) && !empty($v)) { return false;