phpBB

Code Changes

File: includes/ucp/ucp_main.php

  Unmodified   Added   Modified   Removed
Line 230Line 230
						$forums = array_keys($request->variable('f', array(0 => 0)));
$topics = array_keys($request->variable('t', array(0 => 0)));


						$forums = array_keys($request->variable('f', array(0 => 0)));
$topics = array_keys($request->variable('t', array(0 => 0)));


						if (sizeof($forums) || sizeof($topics))

						if (count($forums) || count($topics))

						{
$l_unwatch = '';

						{
$l_unwatch = '';

							if (sizeof($forums))

							if (count($forums))

							{
$sql = 'DELETE FROM ' . FORUMS_WATCH_TABLE . '
WHERE ' . $db->sql_in_set('forum_id', $forums) . '

							{
$sql = 'DELETE FROM ' . FORUMS_WATCH_TABLE . '
WHERE ' . $db->sql_in_set('forum_id', $forums) . '

Line 243Line 243
								$l_unwatch .= '_FORUMS';
}


								$l_unwatch .= '_FORUMS';
}


							if (sizeof($topics))

							if (count($topics))

							{
$sql = 'DELETE FROM ' . TOPICS_WATCH_TABLE . '
WHERE ' . $db->sql_in_set('topic_id', $topics) . '

							{
$sql = 'DELETE FROM ' . TOPICS_WATCH_TABLE . '
WHERE ' . $db->sql_in_set('topic_id', $topics) . '

Line 453Line 453
					$topics = (isset($_POST['t'])) ? array_keys($request->variable('t', array(0 => 0))) : array();
$url = $this->u_action;


					$topics = (isset($_POST['t'])) ? array_keys($request->variable('t', array(0 => 0))) : array();
$url = $this->u_action;


					if (!sizeof($topics))

					if (!count($topics))

					{
trigger_error('NO_BOOKMARKS_SELECTED');
}

					{
trigger_error('NO_BOOKMARKS_SELECTED');
}

Line 508Line 508
					{
$drafts = array_keys($request->variable('d', array(0 => 0)));


					{
$drafts = array_keys($request->variable('d', array(0 => 0)));


						if (sizeof($drafts))

						if (count($drafts))

						{
$sql = 'DELETE FROM ' . DRAFTS_TABLE . '
WHERE ' . $db->sql_in_set('draft_id', $drafts) . '

						{
$sql = 'DELETE FROM ' . DRAFTS_TABLE . '
WHERE ' . $db->sql_in_set('draft_id', $drafts) . '

Line 594Line 594
				}
$db->sql_freeresult($result);


				}
$db->sql_freeresult($result);


				if (sizeof($topic_ids))

				if (count($topic_ids))

				{
$sql = 'SELECT topic_id, forum_id, topic_title
FROM ' . TOPICS_TABLE . '

				{
$sql = 'SELECT topic_id, forum_id, topic_title
FROM ' . TOPICS_TABLE . '