Fix attribute presence check

This commit is contained in:
Gunter Labes 2023-10-26 20:54:12 +02:00 committed by GitHub
parent da53b6967f
commit 2fd85fc556
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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