| @@ 178-187 (lines=10) @@ | ||
| 175 | { |
|
| 176 | $where = ''; |
|
| 177 | ||
| 178 | if ($withperm) { |
|
| 179 | $where = sprintf(' |
|
| 180 | WHERE |
|
| 181 | ( fg.group_id IN (%s) |
|
| 182 | OR |
|
| 183 | (fu.user_id = %d AND fg.group_id IN (%s)))', |
|
| 184 | implode(', ', $this->groups), |
|
| 185 | $this->user, |
|
| 186 | implode(', ', $this->groups) |
|
| 187 | ); |
|
| 188 | } |
|
| 189 | ||
| 190 | if (isset($this->language) && preg_match("/^[a-z\-]{2,}$/", $this->language)) { |
|
| @@ 3292-3299 (lines=8) @@ | ||
| 3289 | implode(', ', $this->groups), |
|
| 3290 | $this->user, |
|
| 3291 | implode(', ', $this->groups)); |
|
| 3292 | } else { |
|
| 3293 | return sprintf( |
|
| 3294 | 'AND ( fdg.group_id IN (%s) OR (fdu.user_id = %d OR fdg.group_id IN (%s)) )', |
|
| 3295 | implode(', ', $this->groups), |
|
| 3296 | $this->user, |
|
| 3297 | implode(', ', $this->groups) |
|
| 3298 | ); |
|
| 3299 | } |
|
| 3300 | } else { |
|
| 3301 | if (-1 !== $this->user) { |
|
| 3302 | return sprintf( |
|