| @@ 106-113 (lines=8) @@ | ||
| 103 | AND t.topic_attr_user <> ' . ANONYMOUS; |
|
| 104 | $result = $this->db->sql_query($sql); |
|
| 105 | ||
| 106 | while($row = $this->db->sql_fetchrow($result)) |
|
| 107 | { |
|
| 108 | $this->_name[$row['user_id']] = array( |
|
| 109 | 'user_id' => (int) $row['user_id'], |
|
| 110 | 'username' => $row['username'], |
|
| 111 | 'user_colour' => $row['user_colour'], |
|
| 112 | ); |
|
| 113 | } |
|
| 114 | $this->db->sql_freeresult(); |
|
| 115 | } |
|
| 116 | } |
|
| @@ 146-153 (lines=8) @@ | ||
| 143 | WHERE user_id = ' . (int) $user_id; |
|
| 144 | $result = $this->db->sql_query($sql); |
|
| 145 | ||
| 146 | while($row = $this->db->sql_fetchrow($result) ) |
|
| 147 | { |
|
| 148 | $this->_name[$row['user_id']] = array( |
|
| 149 | 'user_id' => (int) $row['user_id'], |
|
| 150 | 'username' => $row['username'], |
|
| 151 | 'user_colour' => $row['user_colour'], |
|
| 152 | ); |
|
| 153 | } |
|
| 154 | $this->db->sql_freeresult(); |
|
| 155 | } |
|
| 156 | } |
|