mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 05:44:36 +02:00
Repository
: Return null if conversion rules is empty in getConverter()
In case the conversion rules to apply on the repository query is not defined return null in `Repository::getConverter()`.
This commit is contained in:
parent
aa5db51e77
commit
201706614d
@ -791,7 +791,7 @@ abstract class Repository implements Selectable
|
||||
{
|
||||
$conversionRules = $this->getConversionRules();
|
||||
if (! isset($conversionRules[$table])) {
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
$tableRules = $conversionRules[$table];
|
||||
|
Loading…
x
Reference in New Issue
Block a user