diff --git a/config/global.config-default.inc.php b/config/global.config-default.inc.php index 06fec388f..1ab74d1a9 100644 --- a/config/global.config-default.inc.php +++ b/config/global.config-default.inc.php @@ -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); diff --git a/include/pruefling.class.php b/include/pruefling.class.php index d780c8df7..d0c5daf8d 100644 --- a/include/pruefling.class.php +++ b/include/pruefling.class.php @@ -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