diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2013-09-12 22:59:42 -0500 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2013-09-12 22:59:42 -0500 |
commit | 32b92547400c14a402f64463661ce7c1b44e81b3 (patch) | |
tree | d78bf5bfcabd940f378da9e1e63215d84963926b /phpBB/phpbb/notification | |
parent | 97204e432b8ff1c91294169d6fc0d822ef180bf1 (diff) | |
download | forums-32b92547400c14a402f64463661ce7c1b44e81b3.tar forums-32b92547400c14a402f64463661ce7c1b44e81b3.tar.gz forums-32b92547400c14a402f64463661ce7c1b44e81b3.tar.bz2 forums-32b92547400c14a402f64463661ce7c1b44e81b3.tar.xz forums-32b92547400c14a402f64463661ce7c1b44e81b3.zip |
[ticket/11745] Correct language, coding guidelines
PHPBB3-11745
Diffstat (limited to 'phpBB/phpbb/notification')
-rw-r--r-- | phpBB/phpbb/notification/type/group_request.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/phpbb/notification/type/group_request.php b/phpBB/phpbb/notification/type/group_request.php index 96015783fb..f3918f381d 100644 --- a/phpBB/phpbb/notification/type/group_request.php +++ b/phpBB/phpbb/notification/type/group_request.php @@ -38,7 +38,8 @@ class phpbb_notification_type_group_request extends phpbb_notification_type_base public function is_available() { // Leader of any groups? - $sql = 'SELECT group_id FROM ' . USER_GROUP_TABLE . ' + $sql = 'SELECT group_id + FROM ' . USER_GROUP_TABLE . ' WHERE user_id = ' . (int) $this->user->data['user_id'] . ' AND group_leader = 1'; $result = $this->db->sql_query_limit($sql, 1); @@ -74,7 +75,8 @@ class phpbb_notification_type_group_request extends phpbb_notification_type_base 'ignore_users' => array(), ), $options); - $sql = 'SELECT user_id FROM ' . USER_GROUP_TABLE . ' + $sql = 'SELECT user_id + FROM ' . USER_GROUP_TABLE . ' WHERE group_leader = 1 AND group_id = ' . (int) $group['group_id']; $result = $this->db->sql_query($sql); |