mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Fix incorrect variable type in the FilterArrayToInt function
refs #12509
This commit is contained in:
parent
27a23fcff6
commit
8f2477db46
@ -36,7 +36,7 @@ void CustomVarObject::ValidateVars(const Dictionary::Ptr& value, const Validatio
|
|||||||
|
|
||||||
int icinga::FilterArrayToInt(const Array::Ptr& typeFilters, const std::map<String, int>& filterMap, int defaultValue)
|
int icinga::FilterArrayToInt(const Array::Ptr& typeFilters, const std::map<String, int>& filterMap, int defaultValue)
|
||||||
{
|
{
|
||||||
Value resultTypeFilter;
|
int resultTypeFilter;
|
||||||
|
|
||||||
if (!typeFilters)
|
if (!typeFilters)
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user