diff --git a/include/class.dept.php b/include/class.dept.php index 99c79ec24a04e03b9f271eae68bc17af5aff9a26..e098e4661ce22b7728cd18f5b8f631af92ec9569 100644 --- a/include/class.dept.php +++ b/include/class.dept.php @@ -548,8 +548,7 @@ implements TemplateVariable { $query->order_by('name') ->values('id', 'pid', 'flags', 'name', 'parent'); - foreach ($query as $row) - { + foreach ($query as $row) { $display = ($row['flags'] & self::FLAG_ACTIVE); $depts[$row['id']] = array('id' => $row['id'], 'pid'=>$row['pid'], 'name'=>$row['name'], diff --git a/include/class.filter.php b/include/class.filter.php index 4adab820652638e91a6e20aea8ab33f09d054ba4..5db16cdfe0830acfc2ac86b26a290297f2971b76 100644 --- a/include/class.filter.php +++ b/include/class.filter.php @@ -457,8 +457,7 @@ class Filter { } function save($id,$vars,&$errors) { - if ($this) - { + if ($this) { foreach ($this->getActions() as $A) { if ($A->type == 'dept') $dept = Dept::lookup($A->parseConfiguration($vars)['dept_id']); diff --git a/include/staff/filter.inc.php b/include/staff/filter.inc.php index c04ad70142895307e615d6fce0f0eb654bc231bf..ba0c06ce58ccdd35b8dadcdc9001362477da7b83 100644 --- a/include/staff/filter.inc.php +++ b/include/staff/filter.inc.php @@ -240,8 +240,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); if ($filter) { foreach ($filter->getActions() as $A) { $_warn = ''; $existing[] = $A->type; - if($A->type == 'dept') - { + if($A->type == 'dept') { $errors['topic_id'] = ''; // $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); $dept_config = $A->parseConfiguration($_POST); @@ -249,8 +248,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); if($dept && !$dept->isActive()) $_warn = sprintf(__('%s must be active'), __('Department')); } - elseif($A->type == 'topic') - { + elseif($A->type == 'topic') { $errors['dept_id'] = ''; $topic_config = $A->parseConfiguration($_POST); $topic = Topic::lookup($topic_config['topic_id']);