From 5522220889821be7214a5e589551b42137253905 Mon Sep 17 00:00:00 2001
From: Axel Rutz <axel.rutz@clever-systems.net>
Date: Wed, 27 Apr 2016 03:40:30 +0200
Subject: [PATCH] Issue #2701957: Detecting rule changes broken

---
 features.export.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/features.export.inc b/features.export.inc
index 5045b13..0978205 100644
--- a/features.export.inc
+++ b/features.export.inc
@@ -1045,7 +1045,7 @@ function _features_sanitize(&$array, $remove_empty = TRUE) {
     if ($is_assoc) {
       ksort($array, SORT_STRING);
       if ($remove_empty) {
-        $array = array_filter($array);
+        $array = array_filter($array, function ($v) {return !is_null($v);});
       }
     }
     else {
-- 
2.1.4

