From 9096f059c3a7d0ef024e84161281d03f5168c868 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Fri, 9 Sep 2022 18:55:29 +0200 Subject: [PATCH] some debugging --- class/db.php | 4 ++-- hooks/scripts/rdc_store.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/class/db.php b/class/db.php index cd2ca00..df1c118 100644 --- a/class/db.php +++ b/class/db.php @@ -12,9 +12,9 @@ class db extends mysqli function __construct() { - global $testMode, $confDir; + global $testMode, $configDir; - require_once $confDir . "/dbConfig.php"; + require_once $configDir . "/dbConfig.php"; $flagError = false; if ($testMode) { diff --git a/hooks/scripts/rdc_store.php b/hooks/scripts/rdc_store.php index f3d6eeb..c9b97c6 100644 --- a/hooks/scripts/rdc_store.php +++ b/hooks/scripts/rdc_store.php @@ -164,7 +164,7 @@ class rdc_store extends hook { $store2level = $this->storeLevel + 20; } - }elseif ($exterieurLuxMoyen < 5000 and $salon_lux < 200 and $soleil < 100 and $facadeLuxMoyen < 8000) + }elseif ($exterieurLuxMoyen < 5000 and $salon_lux < 200 and $soleil < 100 and $facadeLuxMoyen < 10000) { logger(DEBUG, "exterieurLuxMoyen < 5000 and salon_lux < 200 and soleil < 100", __FILE__ . ":" . __LINE__); $this->close("Luminosité faible");