phpBB

Code Changes

File: includes/acp/acp_search.php

  Unmodified   Added   Modified   Removed
Line 392Line 392
									AND post_id <= ' . (int) ($post_counter + $this->batch_size);
$result = $db->sql_query($sql);


									AND post_id <= ' . (int) ($post_counter + $this->batch_size);
$result = $db->sql_query($sql);


							while ($row = $db->sql_fetchrow($result))












							$buffer = $db->sql_buffer_nested_transactions();

if ($buffer)
{
$rows = $db->sql_fetchrowset($result);
$rows[] = false; // indicate end of array for while loop below

$db->sql_freeresult($result);
}

$i = 0;
while ($row = ($buffer ? $rows[$i++] : $db->sql_fetchrow($result)))

							{
// Indexing enabled for this forum or global announcement?
// Global announcements get indexed by default.

							{
// Indexing enabled for this forum or global announcement?
// Global announcements get indexed by default.

Line 402Line 413
								}
$row_count++;
}

								}
$row_count++;
}

 
							if (!$buffer)
{

							$db->sql_freeresult($result);

							$db->sql_freeresult($result);

 
							}


$post_counter += $this->batch_size;
}


$post_counter += $this->batch_size;
}