Bismeldestichtag_model fix missing DateTime

This commit is contained in:
cgfhtw
2024-07-18 12:01:15 +02:00
parent 6475eb838e
commit b62634242a
@@ -72,7 +72,9 @@ class Bismeldestichtag_model extends DB_Model
return success("0",'No Statusdata vorhanden');
}
$stichtag = current(getData($result));
$stichtag = $stichtag->meldestichtag;
$stichtag = new DateTime($stichtag->meldestichtag);
$statusDatum = new DateTime($status_datum);
// Prüfen, ob Studentstatusdatum oder Studiensemester vor dem Stichtagsdatum liegen
if (isset($statusDatum))