|
|
@ -8,7 +8,7 @@ function createChannel($server, $name, $parent, $options) {
|
|
|
|
if($options['inherit_icons']) {
|
|
|
|
if($options['inherit_icons']) {
|
|
|
|
$icon = $parent->getProperty('channel_icon_id');
|
|
|
|
$icon = $parent->getProperty('channel_icon_id');
|
|
|
|
|
|
|
|
|
|
|
|
#check if parent channel actually has an icon
|
|
|
|
// check if parent channel actually has an icon
|
|
|
|
if($icon !== 0) {
|
|
|
|
if($icon !== 0) {
|
|
|
|
$server->channelPermAssign($id, "i_icon_id", $icon);
|
|
|
|
$server->channelPermAssign($id, "i_icon_id", $icon);
|
|
|
|
}
|
|
|
|
}
|
|
|
|