Skip to content

Commit

Permalink
Merge pull request #889 from Bopske/master
Browse files Browse the repository at this point in the history
Update TPShout.php
  • Loading branch information
Bopske authored Feb 4, 2022
2 parents b3e3e92 + 48d5d6f commit a3dd855
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Sources/TPShout.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,13 @@ function TPShoutFetch($shoutbox_id = null, $shoutbox_layout = null, $render = tr

loadTemplate('TPShout');


$block_shout = ' 1 = 1';
if(!is_null($shoutbox_id)) {
$block_shout = ' s.shoutbox_id = {int:shoutbox_id} ';
}
if(!empty($shoutbox_id)) {
$block_shout = ' s.shoutbox_id = {int:shoutbox_id} ';
}
else {
redirectexit();
}

$members = array();
$request = $smcFunc['db_query']('', '
Expand Down

0 comments on commit a3dd855

Please sign in to comment.