root/extras/trunk/kb/ip_root/plugins/kb/includes/functions_kb.php
| 257 | 259 | ||
|---|---|---|---|
1358 | FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u | 1358 | FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u |
1359 | WHERE p.topic_id = $topic_id | 1359 | WHERE p.topic_id = $topic_id |
1360 | AND u.user_id = p.poster_id | 1360 | AND u.user_id = p.poster_id |
1361 | ORDER BY p.post_time $post_time_order"; | 1361 | ORDER BY p.post_time ASC"; |
1362 | 1362 | ||
1363 | if ($start > -1 && $show_num_comments > 0) | 1363 | if (($start > -1) && ($show_num_comments > 0)) |
1364 | { | 1364 | { |
1365 | $sql .= " LIMIT $start, $show_num_comments "; | 1365 | $sql .= " LIMIT $start, $show_num_comments "; |
1366 | } | 1366 | } |
Download diff