IcingaObjectFieldLoader: silently ignore setValues
...when called for an object without custom var support
This commit is contained in:
parent
baf0d40ea6
commit
edbda2c592
|
@ -45,6 +45,10 @@ class IcingaObjectFieldLoader
|
|||
*/
|
||||
public function setValues($values, $prefix = null)
|
||||
{
|
||||
if (! $this->object->supportsCustomVars()) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
if ($prefix !== null) {
|
||||
$len = strlen($prefix);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue