@@ 293-300 (lines=8) @@ | ||
290 | $exclude_boards = empty($exclude_boards) ? array() : (is_array($exclude_boards) ? $exclude_boards : array($exclude_boards)); |
|
291 | ||
292 | // What about including certain boards - note we do some protection here as pre-2.0 didn't have this parameter. |
|
293 | if (is_array($include_boards) || (int) $include_boards === $include_boards) |
|
294 | { |
|
295 | $include_boards = is_array($include_boards) ? $include_boards : array($include_boards); |
|
296 | } |
|
297 | elseif ($include_boards != null) |
|
298 | { |
|
299 | $include_boards = array(); |
|
300 | } |
|
301 | ||
302 | // Let's restrict the query boys (and girls) |
|
303 | $query_where = ' |
|
@@ 493-501 (lines=9) @@ | ||
490 | $exclude_boards = empty($exclude_boards) ? array() : (is_array($exclude_boards) ? $exclude_boards : array($exclude_boards)); |
|
491 | ||
492 | // Only some boards?. |
|
493 | if (is_array($include_boards) || (int) $include_boards === $include_boards) |
|
494 | { |
|
495 | $include_boards = is_array($include_boards) ? $include_boards : array($include_boards); |
|
496 | } |
|
497 | elseif ($include_boards != null) |
|
498 | { |
|
499 | $output_method = $include_boards; |
|
500 | $include_boards = array(); |
|
501 | } |
|
502 | ||
503 | $icon_sources = array(); |
|
504 | foreach ($context['stable_icons'] as $icon) |