if (isset($_GET['chan']))
{
$channel = $_GET['chan'];
- $channelObj = $rpc->channel()->get($channel);
+ $channelObj = $rpc->channel()->get($channel, 4);
if (!$channelObj && strlen($channel))
{
Message::Fail("Could not find channel: \"$channel\"");
$checkboxes = [];
$chanban_errors = [];
-if (isset($_POST))
+if (!empty($_POST))
{
if (isset($_POST['update_topic']) && isset($_POST['set_topic']))
{
Message::Success($msgbox_str);
}
}
- /* and finally re-grab the channel because updates lol */
- $channelObj = $rpc->channel()->get($channel);
-
+ /* Re-grab the channel because of updates */
+ $channelObj = $rpc->channel()->get($channel, 4);
}
?>