|
|
@ -81,7 +81,7 @@ foreach($boards as &$board) { |
|
|
|
continue; // do no more |
|
|
|
|
|
|
|
if($options['full']) { |
|
|
|
$query = query(sprintf("SELECT `id` FROM `posts_%s`", $board['uri'])) or error(db_error()); |
|
|
|
$query = query(sprintf("SELECT `id` FROM ``posts_%s``", $board['uri'])) or error(db_error()); |
|
|
|
while($post = $query->fetch()) { |
|
|
|
if(!$options['quiet']) |
|
|
|
echo "Rebuilding #{$post['id']}...\n"; |
|
|
@ -89,7 +89,7 @@ foreach($boards as &$board) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$query = query(sprintf("SELECT `id` FROM `posts_%s` WHERE `thread` IS NULL", $board['uri'])) or error(db_error()); |
|
|
|
$query = query(sprintf("SELECT `id` FROM ``posts_%s`` WHERE `thread` IS NULL", $board['uri'])) or error(db_error()); |
|
|
|
while($post = $query->fetch()) { |
|
|
|
if(!$options['quiet']) |
|
|
|
echo "Rebuilding #{$post['id']}...\n"; |
|
|
|