mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
DirectorObjectForm: Fix typo and so on
This commit is contained in:
parent
56c4b791ef
commit
85b26041f9
@ -345,7 +345,9 @@ abstract class DbObject
|
|||||||
*/
|
*/
|
||||||
public function setProperties($props)
|
public function setProperties($props)
|
||||||
{
|
{
|
||||||
if (! is_array($props)) throw new Exception('Array required, got ' . gettype($props));
|
if (! is_array($props)) {
|
||||||
|
throw new Exception('Array required, got ' . gettype($props));
|
||||||
|
}
|
||||||
foreach ($props as $key => $value) {
|
foreach ($props as $key => $value) {
|
||||||
$this->set($key, $value);
|
$this->set($key, $value);
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ abstract class DirectorObjectForm extends QuickForm
|
|||||||
{
|
{
|
||||||
$values = $this->getValues();
|
$values = $this->getValues();
|
||||||
|
|
||||||
if (array_key_exists('group', $values)) {
|
if (array_key_exists('groups', $values)) {
|
||||||
unset($values['groups']);
|
unset($values['groups']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user