mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 06:44:33 +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();
|
$conversionRules = $this->getConversionRules();
|
||||||
if (! isset($conversionRules[$table])) {
|
if (! isset($conversionRules[$table])) {
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$tableRules = $conversionRules[$table];
|
$tableRules = $conversionRules[$table];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user