main/inc/lib/skill.lib.php 1 location
|
@@ 1199-1203 (lines=5) @@
|
| 1196 |
|
$tmp['counter'] = $counter; |
| 1197 |
|
$counter++; |
| 1198 |
|
|
| 1199 |
|
if (isset($elem['data']) && is_array($elem['data'])) { |
| 1200 |
|
foreach ($elem['data'] as $key => $item) { |
| 1201 |
|
$tmp[$key] = $item; |
| 1202 |
|
} |
| 1203 |
|
} |
| 1204 |
|
$simple_sub_tree[] = $tmp; |
| 1205 |
|
} |
| 1206 |
|
return $simple_sub_tree; |
main/inc/lib/plugin.class.php 1 location
|
@@ 206-209 (lines=4) @@
|
| 203 |
|
|
| 204 |
|
foreach ($this->fields as $name => $type) { |
| 205 |
|
$options = null; |
| 206 |
|
if (is_array($type) && isset($type['type']) && $type['type'] === 'select') { |
| 207 |
|
$options = $type['options']; |
| 208 |
|
$type = $type['type']; |
| 209 |
|
} |
| 210 |
|
|
| 211 |
|
$value = $this->get($name); |
| 212 |
|
$defaults[$name] = $value; |