From c92044a429949909b3620cd14441f73dded4bd51 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 10 Feb 2016 08:18:25 -0500 Subject: [PATCH] Minor - Fix notices for undefined variables --- main/admin/sub_language.php | 5 +++-- main/admin/sub_language_add.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main/admin/sub_language.php b/main/admin/sub_language.php index 247c2ad5c6..a83c1d0a40 100755 --- a/main/admin/sub_language.php +++ b/main/admin/sub_language.php @@ -100,14 +100,15 @@ if (!empty($_SESSION['msg'])) { echo '
'; } -$txt_search_word = Security::remove_XSS($_REQUEST['txt_search_word']); + +$txt_search_word = (!empty($_REQUEST['txt_search_word']) ? Security::remove_XSS($_REQUEST['txt_search_word']) : ''); $html ='
'; $html.='
'; $html.=' '.get_lang('OriginalName').'  : '; $html.=''; $html.=''; -$html.=''; +$html.=''; $html.=" ".''; $html.='
'; $html.='
'; diff --git a/main/admin/sub_language_add.php b/main/admin/sub_language_add.php index d8a668ec0b..1ce8173474 100755 --- a/main/admin/sub_language_add.php +++ b/main/admin/sub_language_add.php @@ -226,7 +226,7 @@ if (isset($_POST['SubmitAddNewLanguage'])) { $msg .= Display::return_message(get_lang('LanguageDirectoryNotWriteableContactAdmin'),'error'); } else { // Here we build the confirmation message and we send the user to the sub language terms definition page, using a little hack - see #3712 - $_SESSION['msg'] = Display::return_message(get_lang('TheNewSubLanguageHasBeenAdded').$str_info.$link,'confirm',false); + $_SESSION['msg'] = Display::return_message(get_lang('TheNewSubLanguageHasBeenAdded').$str_info.'confirm',false); unset($interbreadcrumb); $_GET['sub_language_id'] = $_REQUEST['sub_language_id'] = $sl_id; require 'sub_language.php';