Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

^ [#17117] Merge some fixes (23-Oct-2009) from /trunk/1.5 (Revs 1131,…

… 1132, 1134, 1143, 1146, 1148, 1149, 1155)

^ [#17117] Merge some fixes (25-Oct-2009) from /trunk/1.5 (Revs 1157, 1158, 1159, 1160)

git-svn-id: file:///Users/oratzes/svn/kunena@1162 daf2aa89-cb5b-0410-b8ee-fe93ebc9b27d
  • Loading branch information...
commit 5e018b69dad4479744243de7c9bdb9a32f80db68 1 parent e3292e5
Matias Griese mahagr authored
2  administrator/components/com_kunena/kunena.xml
@@ -2,7 +2,7 @@
2 2 <mosinstall type="component">
3 3 <name>Kunena</name>
4 4 <version>1.0.12</version>
5   - <versionname>Rikat</versionname>
  5 + <versionname>Endings</versionname>
6 6 <creationDate>@fbversiondate@</creationDate>
7 7 <build>@fbbuild@</build>
8 8 <author>www.Kunena.com</author>
18 components/com_kunena/CHANGELOG.php
@@ -32,6 +32,24 @@
32 32
33 33 Kunena 1.0.12
34 34
  35 +26-Oct-2009 Matias
  36 +^ [#17117] Merge some fixes (23-Oct-2009) from /trunk/1.5 (Revs 1131, 1132, 1134, 1143, 1146, 1148, 1149, 1155)
  37 +^ [#17117] Merge some fixes (25-Oct-2009) from /trunk/1.5 (Revs 1157, 1158, 1159, 1160)
  38 +
  39 +25-Oct-2009 Matias
  40 +* [#18495] Preview/posting message does not work (Firewall detects attack)
  41 +# [#18494] Optimize queries in Recent Discussions, My Discussions, Category page
  42 +* [#18496] E-mail Administrators option should not send messages to users which receive system messages
  43 +
  44 +23-Oct-2009 Matias
  45 +* [#18443] Report to moderator believes that all users in custom groups should get email
  46 +# [#18444] Do not show your own message as NEW!
  47 +# [#18447] Fatal Error in Recent Discussions (out of memory)
  48 +# [#18456] Remove broken link in Recent Discussions, My Discussions and Show Category
  49 +* [#18465] Online statistics reveals hidden users to registered users
  50 +# [#18467] Increase hit counter if visitor views a thread written by visitor
  51 +* [#18468] Check category id when user is posting to existing thread
  52 +
35 53 4-Oct-2009 Matias
36 54 # [#17785] Internal: JQuery is not loaded if JomSocial integration is enabled
37 55 * [#17802] Who is online shows hidden users and IP address
4 components/com_kunena/template/default/fb_write.html.php
@@ -301,8 +301,8 @@
301 301 </div>
302 302 </div>
303 303 </div>
304   -<input type="hidden" value="<?php echo KUNENA_DIRECTURL . '/template/default';?>" name="templatePath" />
305   -<input type="hidden" value="<?php echo sefRelToAbs(KUNENA_LIVEURLREL);?>" name="kunenaPath" />
  304 +<input type="hidden" value="<?php echo $mosConfig_live_site.'/components/com_kunena/template/default';?>" name="templatePath" />
  305 +<input type="hidden" value="<?php echo $mosConfig_live_site;?>/" name="kunenaPath" />
306 306 </form>
307 307
308 308 </td>
2  components/com_kunena/template/default/plugin/report/report.php
@@ -97,7 +97,7 @@ function ReportMessage($msg_id, $catid, $reporter, $reason, $text, $type) {
97 97 check_dberror("Unable to load moderators.");
98 98
99 99 //get admins
100   - $database->setQuery("SELECT id FROM #__users WHERE gid >= 24");
  100 + $database->setQuery("SELECT id FROM #__users WHERE gid IN (24, 25)");
101 101 $admins = $database->loadObjectList();
102 102 check_dberror("Unable to load admin.");
103 103
2  components/com_kunena/template/default/plugin/userlist/userlist.php
@@ -116,7 +116,7 @@ class HTML_userlist_content
116 116 {
117 117 function showlist($ulrows, $total_results, $pageNav, $limitstart, $query_ext, $search = "")
118 118 {
119   - global $base_url, $mosConfig_sitename, $database;
  119 + global $is_Moderator, $base_url, $mosConfig_sitename, $database;
120 120 $fbConfig =& CKunenaConfig::getInstance();
121 121
122 122 if ($search == "") {
11 components/com_kunena/template/default/plugin/who/whoisonline.php
@@ -38,11 +38,10 @@
38 38 . "\n LEFT JOIN #__users AS u ON u.id=w.userid "
39 39 . "\n LEFT JOIN #__fb_users AS k ON k.userid=w.userid "
40 40 # filter real public session logouts
41   - . "\n INNER JOIN #__session AS s "
42   - . "\n ON s.guest=0 AND s.userid=w.userid "
43   - . "\n WHERE w.userid!=0 "
44   - . "\n GROUP BY u.id "
45   - . "\n ORDER BY username ASC";
  41 + . " INNER JOIN #__session AS s ON s.guest='0' AND s.userid=w.userid "
  42 + . " WHERE w.userid!='0' "
  43 + . " GROUP BY u.id "
  44 + . " ORDER BY username ASC";
46 45 $database->setQuery($query);
47 46 $users = $database->loadObjectList();
48 47 $totaluser = count($users);
@@ -113,7 +112,7 @@
113 112 $time = date("H:i:s", $user->time);
114 113 ?>
115 114
116   - <?php if ( $user->showOnline < 1 && $my->gid > 1 ){ ?>
  115 + <?php if ( $is_Moderator && $user->showOnline < 1 ){ ?>
117 116
118 117 <a class = "whois<?php echo $user->moderator;?> <?php echo "fb_group_".$grp->id;?>" href = "<?php echo sefRelToAbs(KUNENA_PROFILE_LINK_SUFFIX.''.$user->id) ;?>" title = "<?php echo $time;?>"> <?php echo $user->username; ?></a> &nbsp;
119 118
15 components/com_kunena/template/default/post.php
@@ -28,6 +28,15 @@
28 28 //ob_start();
29 29 $catid = (int)$catid;
30 30
  31 +if ($id)
  32 +{
  33 + // If message exists, override catid to be sure that user can post there
  34 + $database->setQuery("SELECT catid FROM #__fb_messages WHERE id='{$id}'");
  35 + $msgcat = $database->loadResult();
  36 + check_dberror('Unable to check message.');
  37 + if ($msgcat) $catid = $msgcat;
  38 +}
  39 +
31 40 //get the allowed forums and turn it into an array
32 41 $allow_forum = ($fbSession->allowed <> '')?explode(',', $fbSession->allowed):array();
33 42
@@ -292,7 +301,7 @@
292 301 $querythread = $thread;
293 302 }
294 303
295   - $database->setQuery("SELECT * FROM #__fb_sessions WHERE readtopics LIKE '%$thread%'");
  304 + $database->setQuery("SELECT * FROM #__fb_sessions WHERE readtopics LIKE '%$thread%' AND userid!={$my->id}");
296 305 $sessions = $database->loadObjectList();
297 306 check_dberror("Unable to load sessions.");
298 307 foreach ($sessions as $session)
@@ -403,8 +412,8 @@
403 412 $sql2 .= " a.userid IS NOT NULL";
404 413 }
405 414 if($fbConfig->mailadmin==1) {
406   - if(strlen($sql2)) { $sql2 .= "\n OR "; }
407   - $sql2 .= " u.sendEmail=1";
  415 + if(strlen($sql2)) { $sql2 .= " OR "; }
  416 + $sql2 .= " u.gid IN (24, 25)";
408 417 }
409 418 $sql .= "\n".$sql2;
410 419 $sql .= "\n)";
3  components/com_kunena/template/default_ex/flat.php
@@ -209,8 +209,7 @@
209 209 ?>
210 210
211 211 <td class = "td-2" align="center">
212   - <?php echo CKunenaLink::GetSimpleLink($id);
213   - echo $leaf->topic_emoticon == 0 ? '<img src="' . KUNENA_URLEMOTIONSPATH . 'default.gif" border="0" alt="" />' : "<img src=\"" . $topic_emoticons[$leaf->topic_emoticon] . "\" alt=\"emo\" border=\"0\" />"; ?>
  212 + <?php echo $leaf->topic_emoticon == 0 ? '<img src="' . KUNENA_URLEMOTIONSPATH . 'default.gif" border="0" alt="" />' : "<img src=\"" . $topic_emoticons[$leaf->topic_emoticon] . "\" alt=\"emo\" border=\"0\" />"; ?>
214 213 </td>
215 214
216 215 <?php
149 components/com_kunena/template/default_ex/latestx.php
@@ -174,59 +174,48 @@ function KunenaLatestxPagination($func, $sel, $page, $totalpages, $maxpages) {
174 174 $mainframe->appendMetaTag( 'description' ,$metaDesc );
175 175 }
176 176
177   -$query = "SELECT
178   - a.*,
179   - t.message AS messagetext,
180   - m.mesid AS attachmesid,
181   - (f.thread>0) AS myfavorite,
182   - u.avatar,
183   - c.name AS catname,
184   - b.lastpost
185   - FROM
186   - #__fb_messages AS a ";
  177 +$query = "SELECT a.*, t.mesid AS mesid, t.message AS messagetext, m.mesid AS attachmesid, "
  178 + ."myfavorite, u.avatar, c.id AS catid, c.name AS catname, l.msgcount, l.lastid";
187 179
188 180 if ($func == "mylatest")
189 181 {
190   - $query .= "JOIN ( SELECT mm.thread, MAX(mm.time) AS lastpost
191   - FROM #__fb_messages AS mm
192   - JOIN ( SELECT thread
193   - FROM #__fb_messages
194   - WHERE userid=$my->id
195   - GROUP BY 1
196   - UNION ALL
197   - SELECT thread
198   - FROM #__fb_favorites
199   - WHERE userid=$my->id) AS tt ON mm.thread = tt.thread
200   - WHERE hold=0 AND moved=0 AND catid IN ($fbSession->allowed)
201   - GROUP BY 1) AS b ON b.thread = a.thread ";
  182 + $query .= " FROM (
  183 + SELECT m.thread, (f.userid>0) AS myfavorite, COUNT(m.thread) AS msgcount, MAX(m.id) AS lastid, MAX(m.time) AS lasttime
  184 + FROM (
  185 + SELECT thread FROM jos_fb_messages WHERE userid='{$my->id}' AND moved='0' AND hold='0' GROUP BY thread
  186 + UNION ALL
  187 + SELECT thread FROM jos_fb_favorites WHERE userid='{$my->id}'
  188 + ) AS o
  189 + INNER JOIN jos_fb_messages AS m ON m.thread=o.thread
  190 + LEFT JOIN jos_fb_favorites AS f ON f.thread=m.thread AND f.userid = '{$my->id}'
  191 + WHERE m.hold='0' AND m.moved='0' AND m.catid IN ({$fbSession->allowed})
  192 + GROUP BY m.thread
  193 + ORDER BY myfavorite DESC, lastid DESC
  194 + LIMIT {$offset}, {$threads_per_page}) AS l";
202 195 }
203 196 else
204 197 {
205   - $query .= "JOIN ( SELECT thread, MAX(time) AS lastpost
206   - FROM #__fb_messages
207   - WHERE time >'$querytime'
208   - AND hold=0 AND moved=0 AND catid IN ($fbSession->allowed)" .
209   - $latestcats .
210   - " GROUP BY 1) AS b ON b.thread = a.thread ";
  198 + $query .= " FROM (
  199 + SELECT m.thread, (f.userid>0) AS myfavorite, COUNT(m.thread) AS msgcount, MAX(m.id) AS lastid, MAX(m.time) AS lasttime
  200 + FROM jos_fb_messages AS m
  201 + LEFT JOIN jos_fb_favorites AS f ON f.thread=m.thread AND f.userid = '{$my->id}'
  202 + WHERE m.hold='0' AND m.moved='0' AND m.catid IN ({$fbSession->allowed}) {$latestcats}
  203 + GROUP BY m.thread
  204 + ORDER BY lastid DESC
  205 + LIMIT {$offset}, {$threads_per_page}) AS l";
211 206 }
212 207
213   -$query .= "JOIN #__fb_messages_text AS t ON a.thread = t.mesid
214   - LEFT JOIN #__fb_categories AS c ON c.id = a.catid
215   - LEFT JOIN #__fb_attachments AS m ON m.mesid = a.id
216   - LEFT JOIN #__fb_favorites AS f ON f.thread = a.id && f.userid = $my->id"
217   - .(($fbConfig->avatar_src == "cb")?
218   - " LEFT JOIN #__comprofiler AS u ON u.user_id = a.userid ":
219   - " LEFT JOIN #__fb_users AS u ON u.userid = a.userid ")."
220   - WHERE
221   - a.parent=0
222   - AND a.moved=0
223   - AND a.hold=0
224   - GROUP BY a.id
225   - ORDER BY ". ($func=="mylatest"?"f.thread DESC, ":"") ."lastpost DESC
226   - LIMIT $offset,$threads_per_page";
  208 +$query .= " INNER JOIN jos_fb_messages AS a ON a.thread = l.thread
  209 + INNER JOIN jos_fb_messages_text AS t ON a.thread = t.mesid
  210 + LEFT JOIN jos_fb_categories AS c ON c.id = a.catid
  211 + LEFT JOIN jos_fb_attachments AS m ON m.mesid = a.id
  212 + LEFT JOIN jos_fb_users AS u ON u.userid = a.userid
  213 + WHERE (a.parent='0' OR a.id=l.lastid)";
  214 +
  215 +if ($func != "mylatest") $query .= " AND l.lasttime>'{$querytime}'";
227 216
228 217 $database->setQuery($query);
229   -$msglist = $database->loadObjectList();
  218 +$messagelist = $database->loadObjectList();
230 219 check_dberror("Unable to load messages.");
231 220
232 221 $favthread = array();
@@ -234,71 +223,41 @@ function KunenaLatestxPagination($func, $sel, $page, $totalpages, $maxpages) {
234 223 $threadids = array();
235 224 $messages = array();
236 225 $messages[0] = array();
237   -if ($msglist) foreach ($msglist as $message)
  226 +if ($messagelist) foreach ($messagelist as $message)
238 227 {
239   - $threadids[] = $message->id;
240 228 $messages[$message->parent][] = $message;
241   - $last_reply[$message->id] = $message;
242   - $last_read[$message->id]->lastread = $last_reply[$message->thread];
243   - $last_read[$message->id]->unread = 0;
244   - $hits[$message->id] = $message->hits;
245   - $thread_counts[$message->thread] = 0;
246   - // Message text for tooltips
247   - $messagetext[$message->id] = substr(smile::purify($message->messagetext), 0, 500);
  229 + $messagetext[$message->id] = substr(smile::purify($message->messagetext), 0, 500);
  230 + if ($message->parent==0)
  231 + {
  232 + $threadids[] = $message->thread;
  233 + $hits[$message->thread] = $message->hits;
  234 + $thread_counts[$message->thread] = $message->msgcount-1;
  235 + $last_read[$message->thread]->unread = 0;
  236 + if ($message->id == $message->lastid) $last_read[$message->thread]->lastread = $last_reply[$message->thread] = $message;
  237 + }
  238 + else
  239 + {
  240 + $last_read[$message->thread]->lastread = $last_reply[$message->thread] = $message;
  241 + }
248 242 }
249   -if (count($threadids) > 0)
250   -{
251   - $idstr = @join("','", $threadids);
252 243
253   - $database->setQuery("SELECT
254   - thread AS id,
255   - count(thread) AS favcount
256   - FROM #__fb_favorites
  244 + if (count($threadids) > 0)
  245 + {
  246 + $idstr = @join("','", $threadids);
  247 +
  248 + $database->setQuery("SELECT thread, count(thread) AS favcount FROM #__fb_favorites
257 249 WHERE thread IN ('$idstr') GROUP BY thread");
258 250 $favlist = $database->loadObjectList();
259 251 check_dberror("Unable to load messages.");
260 252
261   - foreach($favlist AS $fthread)
  253 + foreach($favlist AS $fthread)
262 254 {
263   - $favthread[$fthread->id] = $fthread->favcount;
  255 + $favthread[$fthread->thread] = $fthread->favcount;
264 256 }
265 257 unset($favlist, $fthread);
266 258
267   - $query = " SELECT
268   - a.id,
269   - a.parent,
270   - a.thread,
271   - a.catid,
272   - a.subject,
273   - a.name,
274   - a.time,
275   - a.topic_emoticon,
276   - a.locked,
277   - a.ordering,
278   - a.userid ,
279   - a.moved,
280   - u.avatar
281   - FROM #__fb_messages AS a "
282   - .(($fbConfig->avatar_src == "cb")?
283   - "LEFT JOIN #__comprofiler AS u ON u.user_id = a.userid"
284   - :"LEFT JOIN #__fb_users AS u ON u.userid = a.userid")."
285   - WHERE a.thread IN ('$idstr')
286   - AND a.id NOT IN ('$idstr')
287   - AND a.hold=0";
288   -
289   - $database->setQuery($query);
290   - $msglist = $database->loadObjectList();
291   - check_dberror("Unable to load messages.");
292   - if ($msglist) foreach ($msglist as $message)
293   - {
294   - $messages[$message->parent][] = $message;
295   - $thread_counts[$message->thread]++;
296   - $last_reply[$message->thread] = $last_reply[$message->thread]->time < $message->time ? $message : $last_reply[$message->thread];
297   - $last_read[$message->id]->lastread = $last_reply[$message->thread];
298   - }
299   -
300 259 $database->setQuery("SELECT thread, MIN(id) AS lastread, SUM(1) AS unread FROM #__fb_messages "
301   - ."WHERE thread IN ('$idstr') AND time>'$prevCheck' GROUP BY thread");
  260 + ."WHERE thread IN ('{$idstr}') AND time>'{$prevCheck}' GROUP BY thread");
302 261 $msgidlist = $database->loadObjectList();
303 262 check_dberror("Unable to get unread messages count and first id.");
304 263
84 components/com_kunena/template/default_ex/showcat.php
@@ -105,27 +105,19 @@ function KunenaShowcatPagination($catid, $page, $totalpages, $maxpages) {
105 105 $total = (int)$database->loadResult();
106 106 check_dberror('Unable to get message count.');
107 107 $totalpages = ceil($total / $threads_per_page);
108   - $database->setQuery("SELECT
109   - a.*,
110   - t.message AS messagetext,
111   - m.mesid AS attachmesid,
112   - (f.thread>0) AS myfavorite,
113   - u.avatar,
114   - MAX(b.time) AS lastpost
115   - FROM #__fb_messages AS a
116   - JOIN #__fb_messages_text AS t ON a.thread = t.mesid
117   - LEFT JOIN #__fb_messages AS b ON b.thread = a.thread
118   - LEFT JOIN #__fb_attachments AS m ON m.mesid = a.id
119   - LEFT JOIN #__fb_favorites AS f ON f.thread = a.id && f.userid = $my->id
120   - " .(($fbConfig->avatar_src == "cb")?
121   - "LEFT JOIN #__comprofiler AS u ON u.user_id = a.userid":
122   - "LEFT JOIN #__fb_users AS u ON u.userid = a.userid")."
123   - WHERE a.parent = '0'
124   - AND a.catid = $catid
125   - AND a.hold = '0'
126   - GROUP BY id
127   - ORDER BY ordering DESC , lastpost DESC
128   - LIMIT $offset,$threads_per_page");
  108 + $database->setQuery("SELECT a.*, t.mesid, t.message AS messagetext, m.mesid AS attachmesid, (f.thread>0) AS myfavorite, u.avatar, l.msgcount, l.lastid
  109 + FROM (
  110 + SELECT thread, IF(parent=0,ordering,0) AS ordering, COUNT(thread) as msgcount, MAX(id) AS lastid, MAX(m.time) AS lasttime
  111 + FROM jos_fb_messages WHERE hold='0' AND catid='{$catid}'
  112 + GROUP BY thread
  113 + ORDER BY ordering DESC, lastid DESC
  114 + LIMIT {$offset}, {$threads_per_page}) AS l
  115 + INNER JOIN jos_fb_messages AS a ON a.thread=l.thread
  116 + INNER JOIN jos_fb_messages_text AS t ON a.id = t.mesid
  117 + LEFT JOIN jos_fb_attachments AS m ON m.mesid = a.id
  118 + LEFT JOIN jos_fb_favorites AS f ON f.thread = a.id && f.userid='{$my->id}'
  119 + LEFT JOIN jos_fb_users AS u ON u.userid = a.userid
  120 + WHERE (a.parent='0' or a.id=l.lastid) AND a.hold='0'");
129 121 $messagelist = $database->loadObjectList();
130 122 check_dberror("Unable to load messages.");
131 123
@@ -136,57 +128,39 @@ function KunenaShowcatPagination($catid, $page, $totalpages, $maxpages) {
136 128 $thread_counts = array();
137 129 foreach ($messagelist as $message)
138 130 {
139   - $threadids[] = $message->id;
140   - $messages[$message->parent][] = $message;
141   - $last_reply[$message->id] = $message;
142   - $last_read[$message->id]->lastread = $last_reply[$message->thread];
143   - $last_read[$message->id]->unread = 0;
144   - $hits[$message->id] = $message->hits;
145   - $thread_counts[$message->id] = 0;
  131 + $messages[$message->parent][] = $message;
146 132 $messagetext[$message->id] = substr(smile::purify($message->messagetext), 0, 500);
  133 + if ($message->parent==0)
  134 + {
  135 + $threadids[] = $message->thread;
  136 + $hits[$message->thread] = $message->hits;
  137 + $thread_counts[$message->thread] = $message->msgcount-1;
  138 + $last_read[$message->thread]->unread = 0;
  139 + if ($message->id == $message->lastid) $last_read[$message->thread]->lastread = $last_reply[$message->thread] = $message;
  140 + }
  141 + else
  142 + {
  143 + $last_read[$message->thread]->lastread = $last_reply[$message->thread] = $message;
  144 + }
147 145 }
148 146
149 147 if (count($threadids) > 0)
150 148 {
151 149 $idstr = @join("','", $threadids);
152 150
153   - $database->setQuery("SELECT
154   - thread AS id,
155   - count(thread) AS favcount
156   - FROM #__fb_favorites
  151 + $database->setQuery("SELECT thread, count(thread) AS favcount FROM #__fb_favorites
157 152 WHERE thread IN ('$idstr') GROUP BY thread");
158 153 $favlist = $database->loadObjectList();
159 154 check_dberror("Unable to load messages.");
160 155
161 156 foreach($favlist AS $fthread)
162 157 {
163   - $favthread[$fthread->id] = $fthread->favcount;
  158 + $favthread[$fthread->thread] = $fthread->favcount;
164 159 }
165 160 unset($favlist, $fthread);
166 161
167   - $database->setQuery("SELECT
168   - a.*,
169   - u.avatar
170   - FROM #__fb_messages AS a
171   - " .(($fbConfig->avatar_src == "cb")?
172   - "LEFT JOIN #__comprofiler AS u ON u.user_id = a.userid":
173   - "LEFT JOIN #__fb_users AS u ON u.userid = a.userid")."
174   - WHERE a.thread IN ('$idstr')
175   - AND a.id NOT IN ('$idstr')
176   - AND a.hold=0");
177   - $messagelist = $database->loadObjectList();
178   - check_dberror("Unable to load messages.");
179   -
180   - foreach ($messagelist as $message)
181   - {
182   - $messages[$message->parent][] = $message;
183   - $thread_counts[$message->thread]++;
184   - $last_reply[$message->thread] = ($last_reply[$message->thread]->time < $message->time) ? $message : $last_reply[$message->thread];
185   - $last_read[$message->id]->lastread = $last_reply[$message->thread];
186   - }
187   -
188 162 $database->setQuery("SELECT thread, MIN(id) AS lastread, SUM(1) AS unread FROM #__fb_messages "
189   - ."WHERE thread IN ('$idstr') AND time>'$prevCheck' GROUP BY thread");
  163 + ."WHERE thread IN ('{$idstr}') AND time>'{$prevCheck}' GROUP BY thread");
190 164 $msgidlist = $database->loadObjectList();
191 165 check_dberror("Unable to get unread messages count and first id.");
192 166
2  components/com_kunena/template/default_ex/view.php
@@ -156,7 +156,7 @@ function KunenaViewPagination($catid, $threadid, $page, $totalpages, $maxpages)
156 156 }
157 157
158 158 //update the hits counter for this topic & exclude the owner
159   - if ($this_message->userid != $my->id) {
  159 + if ($my->id > 0 && $this_message->userid != $my->id) {
160 160 $database->setQuery("UPDATE #__fb_messages SET hits=hits+1 WHERE id=$thread AND parent=0");
161 161 $database->query();
162 162 }

0 comments on commit 5e018b6

Please sign in to comment.
Something went wrong with that request. Please try again.