| @@ 1955-1963 (lines=9) @@ | ||
| 1952 | ||
| 1953 | if ($result) { |
|
| 1954 | while ($row = $this->config->getDb()->fetchObject($result)) { |
|
| 1955 | if ($this->groupSupport) { |
|
| 1956 | if (!in_array($row->user_id, array(-1, $this->user)) || !in_array($row->group_id, $this->groups)) { |
|
| 1957 | continue; |
|
| 1958 | } |
|
| 1959 | } else { |
|
| 1960 | if (!in_array($row->user_id, array(-1, $this->user))) { |
|
| 1961 | continue; |
|
| 1962 | } |
|
| 1963 | } |
|
| 1964 | ||
| 1965 | $data['visits'] = (int)$row->visits; |
|
| 1966 | $data['question'] = $row->question; |
|
| @@ 2186-2194 (lines=9) @@ | ||
| 2183 | ||
| 2184 | if ($result) { |
|
| 2185 | while (($row = $this->config->getDb()->fetchObject($result))) { |
|
| 2186 | if ($this->groupSupport) { |
|
| 2187 | if (!in_array($row->user_id, array(-1, $this->user)) || !in_array($row->group_id, $this->groups)) { |
|
| 2188 | continue; |
|
| 2189 | } |
|
| 2190 | } else { |
|
| 2191 | if (!in_array($row->user_id, array(-1, $this->user))) { |
|
| 2192 | continue; |
|
| 2193 | } |
|
| 2194 | } |
|
| 2195 | ||
| 2196 | $data['date'] = Date::createIsoDate($row->updated, DATE_ISO8601, true); |
|
| 2197 | $data['question'] = $row->question; |
|