Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | 1 | public function get_all($select_id = false, $ignore_id = false, $ignore_acl = true, $ignore_nonpost = false, $ignore_emptycat = true, $only_acl_post = false) |
|
40 | { |
||
41 | 1 | $forumlist = make_forum_select($select_id, $ignore_id, $ignore_acl, $ignore_nonpost, $ignore_emptycat, $only_acl_post, true); |
|
42 | |||
43 | 1 | $forum_options = array('' => 'ALL'); |
|
44 | 1 | foreach ($forumlist as $row) |
|
45 | { |
||
46 | 1 | $forum_options[$row['forum_id']] = $row['padding'] . $row['forum_name']; |
|
47 | 1 | } |
|
48 | |||
49 | 1 | return $forum_options; |
|
50 | } |
||
51 | } |
||
52 |