Ignore:
Timestamp:
Mar 31, 2010, 6:32:40 PM (14 years ago)
Author:
george
Message:
  • Upraveno: Aktualizace fóra.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forum/includes/acp/acp_words.php

    r400 r702  
    33*
    44* @package acp
    5 * @version $Id: acp_words.php 8479 2008-03-29 00:22:48Z naderman $
     5* @version $Id$
    66* @copyright (c) 2005 phpBB Group
    77* @license http://opensource.org/licenses/gpl-license.php GNU Public License
     
    2424{
    2525        var $u_action;
    26        
     26
    2727        function main($id, $mode)
    2828        {
     
    4848                {
    4949                        case 'edit':
     50
    5051                                $word_id = request_var('id', 0);
    51                                
     52
    5253                                if (!$word_id)
    5354                                {
     
    7475                                        'S_HIDDEN_FIELDS'       => $s_hidden_fields)
    7576                                );
    76                                
     77
    7778                                return;
    7879
     
    8586                                        trigger_error($user->lang['FORM_INVALID']. adm_back_link($this->u_action), E_USER_WARNING);
    8687                                }
     88
    8789                                $word_id                = request_var('id', 0);
    8890                                $word                   = utf8_normalize_nfc(request_var('word', '', true));
    8991                                $replacement    = utf8_normalize_nfc(request_var('replacement', '', true));
    90                                
    91                                 if (!$word || !$replacement)
     92
     93                                if ($word === '' || $replacement === '')
    9294                                {
    9395                                        trigger_error($user->lang['ENTER_WORD'] . adm_back_link($this->u_action), E_USER_WARNING);
Note: See TracChangeset for help on using the changeset viewer.