@@ -163,8 +163,7 @@ |
||
| 163 | 163 | } |
| 164 | 164 | if ($value === null) { |
| 165 | 165 | |
| 166 | - if($options['type'] === 'privilege') |
|
| 167 | - { |
|
| 166 | + if($options['type'] === 'privilege') { |
|
| 168 | 167 | return array( |
| 169 | 168 | 'location' => 'privilege', |
| 170 | 169 | 'name' => $name |
@@ -68,8 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | public function get_effective_value(array $options,$object = null) |
| 70 | 70 | { |
| 71 | - if (!$object) |
|
| 72 | - { |
|
| 71 | + if (!$object) { |
|
| 73 | 72 | $defaults = midcom::get()->auth->acl->get_default_privileges(); |
| 74 | 73 | return(($defaults[$options['privilege_name']] === MIDCOM_PRIVILEGE_ALLOW)); |
| 75 | 74 | } |
@@ -112,8 +111,7 @@ discard block |
||
| 112 | 111 | $object_found = false; |
| 113 | 112 | $help_obj = $object; |
| 114 | 113 | |
| 115 | - while (!$object_found) |
|
| 116 | - { |
|
| 114 | + while (!$object_found) { |
|
| 117 | 115 | if ($help_obj instanceof dbacontainer) { |
| 118 | 116 | $object_found = true; |
| 119 | 117 | return $help_obj->get_value(); |