1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 05:18:32 +01:00

Check if meta key exists

This commit is contained in:
Barry vd. Heuvel 2014-01-14 10:10:17 +01:00
parent 3f4680643a
commit 5a9aef67dd

View File

@ -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;
}
}