phpBB

Code Changes

File: includes/acp/acp_search.php

  Unmodified   Added   Modified   Removed
Line 332Line 332
								$forum_ids[] = $row['forum_id'];
}
$db->sql_freeresult($result);

								$forum_ids[] = $row['forum_id'];
}
$db->sql_freeresult($result);

							$row_count += sizeof($ids);

							$row_count += count($ids);





							if (sizeof($ids))

							if (count($ids))

							{
$this->search->index_remove($ids, $posters, $forum_ids);
}

							{
$this->search->index_remove($ids, $posters, $forum_ids);
}

Line 474Line 474
			$statistics = array();
foreach ($data as $statistic => $value)
{

			$statistics = array();
foreach ($data as $statistic => $value)
{

				$n = sizeof($statistics);
if ($n && sizeof($statistics[$n - 1]) < 3)

				$n = count($statistics);
if ($n && count($statistics[$n - 1]) < 3)

				{
$statistics[$n - 1] += array('statistic_2' => $statistic, 'value_2' => $value);
}

				{
$statistics[$n - 1] += array('statistic_2' => $statistic, 'value_2' => $value);
}

Line 492Line 492
				'S_ACTIVE'			=> ($type == $config['search_type']) ? true : false,
'S_HIDDEN_FIELDS' => build_hidden_fields(array('search_type' => $type)),
'S_INDEXED' => (bool) $search->index_created(),

				'S_ACTIVE'			=> ($type == $config['search_type']) ? true : false,
'S_HIDDEN_FIELDS' => build_hidden_fields(array('search_type' => $type)),
'S_INDEXED' => (bool) $search->index_created(),

				'S_STATS'			=> (bool) sizeof($statistics))

				'S_STATS'			=> (bool) count($statistics))

			);

foreach ($statistics as $statistic)

			);

foreach ($statistics as $statistic)