@@ 3271-3278 (lines=8) @@ | ||
3268 | implode(', ', $this->groups), |
|
3269 | $this->user, |
|
3270 | implode(', ', $this->groups)); |
|
3271 | } else { |
|
3272 | return sprintf( |
|
3273 | 'AND ( fdg.group_id IN (%s) OR (fdu.user_id = %d OR fdg.group_id IN (%s)) )', |
|
3274 | implode(', ', $this->groups), |
|
3275 | $this->user, |
|
3276 | implode(', ', $this->groups) |
|
3277 | ); |
|
3278 | } |
|
3279 | } else { |
|
3280 | if (-1 !== $this->user) { |
|
3281 | return sprintf( |
@@ 185-194 (lines=10) @@ | ||
182 | { |
|
183 | $where = ''; |
|
184 | ||
185 | if ($withperm) { |
|
186 | $where = sprintf(' |
|
187 | WHERE |
|
188 | ( fg.group_id IN (%s) |
|
189 | OR |
|
190 | (fu.user_id = %d AND fg.group_id IN (%s)))', |
|
191 | implode(', ', $this->groups), |
|
192 | $this->user, |
|
193 | implode(', ', $this->groups) |
|
194 | ); |
|
195 | } |
|
196 | ||
197 | if (isset($this->language) && preg_match("/^[a-z\-]{2,}$/", $this->language)) { |