monitoring: Fix setting a resource on a backend

The resources were indexed by integers instead of the resource names.
This commit is contained in:
Eric Lippmann 2014-10-01 14:17:29 +02:00
parent 74bd9b319d
commit 531448eee4
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class BackendConfigForm extends ConfigForm
$resources = array();
foreach ($resourceConfig as $name => $resource) {
if ($resource->type === 'db' || $resource->type === 'statusdat' || $resource->type === 'livestatus') {
$resources[$resource->type === 'db' ? 'ido' : strtolower($resource->type)][] = $name;
$resources[$resource->type === 'db' ? 'ido' : strtolower($resource->type)][$name] = $name;
}
}