@@ 3067-3074 (lines=8) @@ | ||
3064 | implode(', ', $this->groups), |
|
3065 | $this->user, |
|
3066 | implode(', ', $this->groups)); |
|
3067 | } else { |
|
3068 | return sprintf( |
|
3069 | "AND ( fdg.group_id IN (%s) OR (fdu.user_id = %d OR fdg.group_id IN (%s)) )", |
|
3070 | implode(', ', $this->groups), |
|
3071 | $this->user, |
|
3072 | implode(', ', $this->groups) |
|
3073 | ); |
|
3074 | } |
|
3075 | } else { |
|
3076 | if (-1 !== $this->user) { |
|
3077 | return sprintf( |
@@ 184-193 (lines=10) @@ | ||
181 | { |
|
182 | $where = ''; |
|
183 | ||
184 | if ($withperm) { |
|
185 | $where = sprintf(" |
|
186 | WHERE |
|
187 | ( fg.group_id IN (%s) |
|
188 | OR |
|
189 | (fu.user_id = %d AND fg.group_id IN (%s)))", |
|
190 | implode(', ', $this->groups), |
|
191 | $this->user, |
|
192 | implode(', ', $this->groups)); |
|
193 | } |
|
194 | ||
195 | if (isset($this->language) && preg_match("/^[a-z\-]{2,}$/", $this->language)) { |
|
196 | $where .= empty($where) ? ' |