Serialized array of config const FAS_REIHUNGSTEST_EXCLUDE_GEBIETE

Serialized and unserialized const array to make it work properly.
This commit is contained in:
Cris
2019-03-28 16:53:59 +01:00
parent 4c0d8e7f20
commit df8ccbdd69
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ define('FAS_REIHUNGSTEST_PUNKTE', false);
// Legt fest, welche Reihungstestgebiete bei der Berechnung der Gesamtpunkte NICHT einbezogen werden.
// array(gebiet_id1, gebiet_id2,...)
define('FAS_REIHUNGSTEST_EXCLUDE_GEBIETE', array());
define('FAS_REIHUNGSTEST_EXCLUDE_GEBIETE', serialize(array()));
// Legt fest ob Messages im FAS angezeigt werden true|false
define('FAS_MESSAGES',false);
+2 -1
View File
@@ -363,7 +363,8 @@ class pruefling extends basis_db
{
if (defined('FAS_REIHUNGSTEST_EXCLUDE_GEBIETE') && !empty(FAS_REIHUNGSTEST_EXCLUDE_GEBIETE))
{
$exclude_gebiet_id_arr = FAS_REIHUNGSTEST_EXCLUDE_GEBIETE;
$excluded_gebiete = unserialize(FAS_REIHUNGSTEST_EXCLUDE_GEBIETE);
$exclude_gebiet_id_arr = $excluded_gebiete;
$exclude_gebiet_id_toString = implode(', ', $exclude_gebiet_id_arr);
$qry .= "
AND