diff --git a/html/export.php b/html/export.php
index a22cbd3e4..d287a8ce4 100644
--- a/html/export.php
+++ b/html/export.php
@@ -38,8 +38,10 @@ require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
// for loading javascripts or style-sheet, it is needed to know the user
// global preference, but the user is not yet connected
// to a folder. So the Database is the repository
-$g_user=new Noalyss_user(new Database());
-set_language();
+if ( defined("noalyss_user") || defined("phpcompta_user")) {
+ $g_user=new Noalyss_user(new Database());
+ set_language();
+}
// load message for javascript
if (isset ($_REQUEST['loadjs']) && $_REQUEST['loadjs']=='message')
{
diff --git a/include/lib/config_file.php b/include/lib/config_file.php
index a320b2017..07fe9c4e9 100644
--- a/include/lib/config_file.php
+++ b/include/lib/config_file.php
@@ -299,7 +299,7 @@ function display_file_config($p_array, $from_setup = 1, $p_os = 1)
// with NGINX it is needed to set the NOALYSS_URL , it is the default URL of $a
// your installation, example with https://demo.noalyss.eu $a
// define ("NOALYSS_URL","https://demo.noalyss.eu"); $a
- EOF;
+EOF;
}
/*!
* \brief create the config file