From 2f3f7f09f117ca690d76df6ce09f29f7ecbac722 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Tue, 10 Aug 2010 07:40:43 +0000 Subject: [PATCH] Warning cleanup. --- includes/ajax.inc | 2 +- includes/lang/language.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ajax.inc b/includes/ajax.inc index a8a6981c..13a9c1ef 100644 --- a/includes/ajax.inc +++ b/includes/ajax.inc @@ -18,7 +18,7 @@ class Ajax extends JsHttpRequest { function Ajax() { - $this->JsHttpRequest($_SESSION['language']->encoding); + $this->JsHttpRequest(@$_SESSION['language']->encoding); } // // This function is used in ctrl routines to activate diff --git a/includes/lang/language.php b/includes/lang/language.php index 45aa3ee0..ea428fca 100644 --- a/includes/lang/language.php +++ b/includes/lang/language.php @@ -12,7 +12,7 @@ // Prevent register_globals vulnerability if (isset($_GET['path_to_root']) || isset($_POST['path_to_root'])) die("Restricted access"); -include_once($path_to_root . "/lang/installed_languages.inc"); +@include_once($path_to_root . "/lang/installed_languages.inc"); include_once($path_to_root . "/includes/lang/gettext.php"); class language -- 2.30.2