DirectorObjectForm: Fix typo and so on

This commit is contained in:
Alexander Fuhr 2015-06-17 11:18:44 +02:00
parent 56c4b791ef
commit 85b26041f9
2 changed files with 4 additions and 2 deletions

View File

@ -345,7 +345,9 @@ abstract class DbObject
*/
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) {
$this->set($key, $value);
}

View File

@ -16,7 +16,7 @@ abstract class DirectorObjectForm extends QuickForm
{
$values = $this->getValues();
if (array_key_exists('group', $values)) {
if (array_key_exists('groups', $values)) {
unset($values['groups']);
}