mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-11 10:05:19 +02:00
[ticket/10411] Add a comment why we left join the group table
We left join the group table because we want to check that the group does exist there aswell. PHPBB3-10411
This commit is contained in:
parent
780a8c98ac
commit
46b75f4cf9
@ -88,6 +88,7 @@ class phpbb_groupposition_teampage implements phpbb_groupposition_interface
|
||||
*/
|
||||
public function get_group_value($group_id)
|
||||
{
|
||||
// The join is required to ensure that the group itself exists
|
||||
$sql = 'SELECT g.group_id, t.teampage_position
|
||||
FROM ' . GROUPS_TABLE . ' g
|
||||
LEFT JOIN ' . TEAMPAGE_TABLE . ' t
|
||||
@ -114,6 +115,7 @@ class phpbb_groupposition_teampage implements phpbb_groupposition_interface
|
||||
*/
|
||||
public function get_group_values($group_id)
|
||||
{
|
||||
// The join is required to ensure that the group itself exists
|
||||
$sql = 'SELECT *
|
||||
FROM ' . GROUPS_TABLE . ' g
|
||||
LEFT JOIN ' . TEAMPAGE_TABLE . ' t
|
||||
|
Loading…
x
Reference in New Issue
Block a user