IcingaObjectFieldLoader: silently ignore setValues

...when called for an object without custom var support
This commit is contained in:
Thomas Gelf 2016-10-17 16:57:25 +00:00
parent baf0d40ea6
commit edbda2c592
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ class IcingaObjectFieldLoader
*/
public function setValues($values, $prefix = null)
{
if (! $this->object->supportsCustomVars()) {
return $this;
}
if ($prefix !== null) {
$len = strlen($prefix);
}