main/inc/lib/skill.lib.php 1 location
|
@@ 1141-1145 (lines=5) @@
|
1138 |
|
$tmp['counter'] = $counter; |
1139 |
|
$counter++; |
1140 |
|
|
1141 |
|
if (isset($elem['data']) && is_array($elem['data'])) { |
1142 |
|
foreach ($elem['data'] as $key => $item) { |
1143 |
|
$tmp[$key] = $item; |
1144 |
|
} |
1145 |
|
} |
1146 |
|
$simple_sub_tree[] = $tmp; |
1147 |
|
} |
1148 |
|
return $simple_sub_tree; |
main/inc/lib/plugin.class.php 1 location
|
@@ 188-191 (lines=4) @@
|
185 |
|
|
186 |
|
foreach ($this->fields as $name => $type) { |
187 |
|
$options = null; |
188 |
|
if (is_array($type) && isset($type['type']) && $type['type'] === 'select') { |
189 |
|
$options = $type['options']; |
190 |
|
$type = $type['type']; |
191 |
|
} |
192 |
|
|
193 |
|
$value = $this->get($name); |
194 |
|
$defaults[$name] = $value; |