X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/ce9cf366c3d7fdf1f45129f70eb75ebce522d1c4..0a963606493491c8e39a3af931373a40e08aa52f:/channels/details.php?ds=sidebyside
diff --git a/channels/details.php b/channels/details.php
index 5722c5f..4859c86 100644
--- a/channels/details.php
+++ b/channels/details.php
@@ -1,21 +1,26 @@
channel()->get($channel);
- if (!$channel)
+ $channelObj = $rpc->channel()->get($channel);
+ if (!$channelObj && strlen($channel))
{
Message::Fail("Could not find channel: \"$channel\"");
- } else {
- $channame = $channel->name;
+ } elseif (strlen($channel)) {
+
+ $channame = $channelObj->name;
$title .= " for \"" . $channame . "\"";
+ do_log($channelObj);
}
}
?>
@@ -24,7 +29,7 @@ if (isset($_GET['chan']))