@@ 186-195 (lines=10) @@ | ||
183 | { |
|
184 | $where = ''; |
|
185 | ||
186 | if ($withperm) { |
|
187 | $where = sprintf(' |
|
188 | WHERE |
|
189 | ( fg.group_id IN (%s) |
|
190 | OR |
|
191 | (fu.user_id = %d AND fg.group_id IN (%s)))', |
|
192 | implode(', ', $this->groups), |
|
193 | $this->user, |
|
194 | implode(', ', $this->groups) |
|
195 | ); |
|
196 | } |
|
197 | ||
198 | if (isset($this->language) && preg_match("/^[a-z\-]{2,}$/", $this->language)) { |
@@ 3281-3288 (lines=8) @@ | ||
3278 | implode(', ', $this->groups), |
|
3279 | $this->user, |
|
3280 | implode(', ', $this->groups)); |
|
3281 | } else { |
|
3282 | return sprintf( |
|
3283 | 'AND ( fdg.group_id IN (%s) OR (fdu.user_id = %d OR fdg.group_id IN (%s)) )', |
|
3284 | implode(', ', $this->groups), |
|
3285 | $this->user, |
|
3286 | implode(', ', $this->groups) |
|
3287 | ); |
|
3288 | } |
|
3289 | } else { |
|
3290 | if (-1 !== $this->user) { |
|
3291 | return sprintf( |