Skip to content

Commit

Permalink
Fixed warning 'Invalid argument passed for foreach()' when watching a…
Browse files Browse the repository at this point in the history
… thread
  • Loading branch information
Filippo Rossi committed Dec 4, 2016
1 parent 3df8f87 commit 567984f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/plugins/thunderboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ function thunderboard_replace(&$contents)
// if the stylesheet is already available
foreach (['global', $mybb->get_input('action')] as $pageAction) {

foreach ($theme['stylesheets'][basename($_SERVER['PHP_SELF'])][$pageAction] as $pageSpecificStylesheet) {
foreach ((array) $theme['stylesheets'][basename($_SERVER['PHP_SELF'])][$pageAction] as $pageSpecificStylesheet) {

if ($pageSpecificStylesheet == $plainLink) {
$specific = true;
Expand Down

0 comments on commit 567984f

Please sign in to comment.