phpBB

Code Changes

File: includes/acp/acp_words.php

  Unmodified   Added   Modified   Removed
Line 47Line 47
		switch ($action)
{
case 'edit':

		switch ($action)
{
case 'edit':

 


				$word_id = request_var('id', 0);

if (!$word_id)

				$word_id = request_var('id', 0);

if (!$word_id)

Line 84Line 85
				{
trigger_error($user->lang['FORM_INVALID']. adm_back_link($this->u_action), E_USER_WARNING);
}

				{
trigger_error($user->lang['FORM_INVALID']. adm_back_link($this->u_action), E_USER_WARNING);
}

 


				$word_id		= request_var('id', 0);
$word = utf8_normalize_nfc(request_var('word', '', true));
$replacement = utf8_normalize_nfc(request_var('replacement', '', true));


				$word_id		= request_var('id', 0);
$word = utf8_normalize_nfc(request_var('word', '', true));
$replacement = utf8_normalize_nfc(request_var('replacement', '', true));


				if (!$word || !$replacement)

				if ($word === '' || $replacement === '')

				{
trigger_error($user->lang['ENTER_WORD'] . adm_back_link($this->u_action), E_USER_WARNING);
}

				{
trigger_error($user->lang['ENTER_WORD'] . adm_back_link($this->u_action), E_USER_WARNING);
}

 

// Replace multiple consecutive asterisks with single one as those are not needed
$word = preg_replace('#\*{2,}#', '*', $word);


$sql_ary = array(
'word' => $word,


$sql_ary = array(
'word' => $word,