|
@@ 1099-1108 (lines=10) @@
|
| 1096 |
|
'num_pages' => floor(($num_topics - 1) / $context['topics_per_page']) + 1 |
| 1097 |
|
); |
| 1098 |
|
|
| 1099 |
|
if ($num_topics == 0) |
| 1100 |
|
{ |
| 1101 |
|
$context['topics'] = array(); |
| 1102 |
|
$context['no_topic_listing'] = true; |
| 1103 |
|
if ($context['querystring_board_limits'] == ';start=%d') |
| 1104 |
|
$context['querystring_board_limits'] = ''; |
| 1105 |
|
else |
| 1106 |
|
$context['querystring_board_limits'] = sprintf($context['querystring_board_limits'], $_REQUEST['start']); |
| 1107 |
|
return; |
| 1108 |
|
} |
| 1109 |
|
|
| 1110 |
|
if (!empty($have_temp_table)) |
| 1111 |
|
$request = $smcFunc['db_query']('', ' |
|
@@ 1157-1166 (lines=10) @@
|
| 1154 |
|
$smcFunc['db_free_result']($request); |
| 1155 |
|
|
| 1156 |
|
// Sanity... where have you gone? |
| 1157 |
|
if (empty($topics)) |
| 1158 |
|
{ |
| 1159 |
|
$context['topics'] = array(); |
| 1160 |
|
$context['no_topic_listing'] = true; |
| 1161 |
|
if ($context['querystring_board_limits'] == ';start=%d') |
| 1162 |
|
$context['querystring_board_limits'] = ''; |
| 1163 |
|
else |
| 1164 |
|
$context['querystring_board_limits'] = sprintf($context['querystring_board_limits'], $_REQUEST['start']); |
| 1165 |
|
return; |
| 1166 |
|
} |
| 1167 |
|
|
| 1168 |
|
$request = $smcFunc['db_query']('substring', ' |
| 1169 |
|
SELECT ' . $select_clause . ' |