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; |
main/inc/lib/skill.lib.php 1 location
|
@@ 1158-1162 (lines=5) @@
|
| 1155 |
|
$tmp['counter'] = $counter; |
| 1156 |
|
$counter++; |
| 1157 |
|
|
| 1158 |
|
if (isset($elem['data']) && is_array($elem['data'])) { |
| 1159 |
|
foreach ($elem['data'] as $key => $item) { |
| 1160 |
|
$tmp[$key] = $item; |
| 1161 |
|
} |
| 1162 |
|
} |
| 1163 |
|
$simple_sub_tree[] = $tmp; |
| 1164 |
|
} |
| 1165 |
|
return $simple_sub_tree; |