phpBB

Code Changes

File: includes/ucp/ucp_prefs.php

  Unmodified   Added   Modified   Removed
Line 96Line 96
						$error[] = 'FORM_INVALID';
}


						$error[] = 'FORM_INVALID';
}


					if (!sizeof($error))

					if (!count($error))

					{
$sql_ary = array(
'user_allow_pm' => $data['allowpm'],

					{
$sql_ary = array(
'user_allow_pm' => $data['allowpm'],

Line 188Line 188
				$db->sql_freeresult($result);

$template->assign_vars(array(

				$db->sql_freeresult($result);

$template->assign_vars(array(

					'ERROR'				=> (sizeof($error)) ? implode('<br />', $error) : '',

					'ERROR'				=> (count($error)) ? implode('<br />', $error) : '',


'S_NOTIFY_EMAIL' => ($data['notifymethod'] == NOTIFY_EMAIL) ? true : false,
'S_NOTIFY_IM' => ($data['notifymethod'] == NOTIFY_IM) ? true : false,


'S_NOTIFY_EMAIL' => ($data['notifymethod'] == NOTIFY_EMAIL) ? true : false,
'S_NOTIFY_IM' => ($data['notifymethod'] == NOTIFY_IM) ? true : false,

Line 277Line 277
						$error[] = 'FORM_INVALID';
}


						$error[] = 'FORM_INVALID';
}


					if (!sizeof($error))

					if (!count($error))

					{
$user->optionset('viewimg', $data['images']);
$user->optionset('viewflash', $data['flash']);

					{
$user->optionset('viewimg', $data['images']);
$user->optionset('viewflash', $data['flash']);

Line 412Line 412
				extract($phpbb_dispatcher->trigger_event('core.ucp_prefs_view_after', compact($vars)));

$template->assign_vars(array(

				extract($phpbb_dispatcher->trigger_event('core.ucp_prefs_view_after', compact($vars)));

$template->assign_vars(array(

					'ERROR'				=> (sizeof($error)) ? implode('<br />', $error) : '',

					'ERROR'				=> (count($error)) ? implode('<br />', $error) : '',


'S_IMAGES' => $data['images'],
'S_FLASH' => $data['flash'],


'S_IMAGES' => $data['images'],
'S_FLASH' => $data['flash'],