Fix attribute presence check
This commit is contained in:
parent
da53b6967f
commit
2fd85fc556
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
bool utils::config_filters::bool_matches_if_present(const config& filter, const config& cfg, const std::string& attribute, bool def)
|
||||
{
|
||||
if(filter[attribute].empty()) {
|
||||
if(!filter.has_attribute(attribute)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue