Преглед на файлове

Split topics interface didn't work in postgre - Thanks c2h5oh for the
report

Signed-off-by: emanuele <[email protected]>

emanuele преди 12 години
родител
ревизия
a892540cd0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Sources/SplitTopics.php

+ 1 - 1
Sources/SplitTopics.php

@@ -328,7 +328,7 @@ function SplitSelectTopics()
 		)
 	);
 	while ($row = $smcFunc['db_fetch_assoc']($request))
-		$context[empty($row['is_selected']) ? 'not_selected' : 'selected']['num_messages'] = $row['num_messages'];
+		$context[empty($row['is_selected']) || $row['is_selected'] == 'f' ? 'not_selected' : 'selected']['num_messages'] = $row['num_messages'];
 	$smcFunc['db_free_result']($request);
 
 	// Fix an oversized starting page (to make sure both pageindexes are properly set).