From 5a9aef67dd22b789d60d52e92e367dc2c029455f Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 14 Jan 2014 10:10:17 +0100 Subject: [PATCH] Check if meta key exists --- src/DebugBar/Storage/FileStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DebugBar/Storage/FileStorage.php b/src/DebugBar/Storage/FileStorage.php index 061beee..bdb6466 100644 --- a/src/DebugBar/Storage/FileStorage.php +++ b/src/DebugBar/Storage/FileStorage.php @@ -90,7 +90,7 @@ class FileStorage implements StorageInterface protected function filter($meta, $filters){ foreach($filters as $key => $value){ - if(fnmatch ($value, $meta[$key]) === false){ + if(!isset($meta[$key]) || fnmatch ($value, $meta[$key]) === false){ return false; } }