Fehler beim Laden von Reports mit mehreren Variablen behoben

This commit is contained in:
Andreas Österreicher
2024-01-16 17:01:09 +01:00
parent 6c95e31bae
commit 69e6c4ca29
+3 -2
View File
@@ -173,11 +173,12 @@ abstract class db extends basis
// If the global constant CI_ENVIRONMENT is not defined then return a failure
if (!defined('CI_ENVIRONMENT')) return null;
define('BASEPATH', 'LEGACY_WORKAROUND'); // little trick to load a CI config file
if(!defined('BASEPATH'))
define('BASEPATH', 'LEGACY_WORKAROUND'); // little trick to load a CI config file
// Tries to include the CI config file that contains password for the database encryption
// If the include fails then return a failure
if (!include_once(dirname(__FILE__).'/../application/config/'.CI_ENVIRONMENT.'/db_crypt.php')) return null;
if (!include(dirname(__FILE__).'/../application/config/'.CI_ENVIRONMENT.'/db_crypt.php')) return null;
// Array that will contains all the DB decryption password
$decryptionPasswordsArray = array();