Warning cleanup.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 10 Aug 2010 07:40:43 +0000 (07:40 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 10 Aug 2010 07:40:43 +0000 (07:40 +0000)
includes/ajax.inc
includes/lang/language.php

index a8a6981c8553e43c3dda82892094ddebea097e70..13a9c1efae809a3b1a02ed69dcd53832d41ff05b 100644 (file)
@@ -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
index 45aa3ee009685101f271e044fd3981e82c7bf969..ea428fca07b5463e3cfc310142b05ad98a9610ec 100644 (file)
@@ -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