[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 02/04: Correct variable
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 02/04: Correct variable |
Date: |
Tue, 11 Mar 2014 18:51:05 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 8dc647a45628982fa4212c39ae88981864761751
Author: Dany De Bontridder <address@hidden>
Date: Tue Mar 11 19:47:53 2014 +0100
Correct variable
---
include/class_database.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/class_database.php b/include/class_database.php
index 70bfc78..1187e2a 100644
--- a/include/class_database.php
+++ b/include/class_database.php
@@ -45,12 +45,12 @@ class Database
$noalyss_user=(defined ("noalyss_user"))?noalyss_user:phpcompta_user;
$password=(defined("noalyss_password"))?noalyss_password:phpcompta_password;
$port=(defined("noalyss_psql_port"))?noalyss_psql_port:phpcompta_psql_port;
- $host=( ! defined ("noalyss_psql_host"))?'127.0.0.1':noalyss_psql_host;
+ $host=( ! defined ("noalyss_psql_host") && ! defined
("phpcompta_psql_host"))?'127.0.0.1':noalyss_psql_host;
if (defined ("MULTI") && MULTI=="0") {
$noalyss_user = noalyss_user;
$password = noalyss_password;
$port = noalyss_psql_port;
- $host = (!defined("noalyss_psql_host")) ? '127.0.0.1' :
noalyss_psql_host;
+ $host = (!defined("noalyss_psql_host")) ? $host :
noalyss_psql_host;
$l_dossier= dbname;
}
else