aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2011-02-17 23:53:05 +0100
committerJoas Schilling <nickvergessen@gmx.de>2011-02-17 23:59:41 +0100
commitd9f092a18b149d62afd5ac8a1c6f7d8e7263d17b (patch)
tree30f172af3c8ec5a098c3c9169481553e361c2dbc /phpBB/includes/functions_user.php
parentf908a016612c47542971d829b9aeed95db829b77 (diff)
downloadforums-d9f092a18b149d62afd5ac8a1c6f7d8e7263d17b.tar
forums-d9f092a18b149d62afd5ac8a1c6f7d8e7263d17b.tar.gz
forums-d9f092a18b149d62afd5ac8a1c6f7d8e7263d17b.tar.bz2
forums-d9f092a18b149d62afd5ac8a1c6f7d8e7263d17b.tar.xz
forums-d9f092a18b149d62afd5ac8a1c6f7d8e7263d17b.zip
[ticket/9549] Only add group to legend/teampage when the checkbox is checked.
The checkbox for the teampage was also missing from the template file. PHPBB3-9549
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index ab2481a5dd..087a85a583 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -2506,7 +2506,7 @@ function group_create(&$group_id, $type, $name, $desc, $group_attributes, $allow
$current_teampage = $teampage->get_group_value($group_id);
}
- if (isset($group_attributes['group_legend']))
+ if (!empty($group_attributes['group_legend']))
{
if (($group_id && ($current_legend == phpbb_group_positions::GROUP_DISABLED)) || !$group_id)
{
@@ -2530,7 +2530,7 @@ function group_create(&$group_id, $type, $name, $desc, $group_attributes, $allow
$group_attributes['group_legend'] = phpbb_group_positions::GROUP_DISABLED;
}
- if (isset($group_attributes['group_teampage']))
+ if (!empty($group_attributes['group_teampage']))
{
if (($group_id && ($current_teampage == phpbb_group_positions::GROUP_DISABLED)) || !$group_id)
{