diff --git a/include/basis.class.php b/include/basis.class.php index fe56eb05d..663cdaa6d 100644 --- a/include/basis.class.php +++ b/include/basis.class.php @@ -130,6 +130,6 @@ class basis */ public function convert_html_chars($value) { - return htmlspecialchars($value); + return htmlspecialchars($value ?? ''); } } diff --git a/include/datum.class.php b/include/datum.class.php index 950cd60ff..8ead28aeb 100644 --- a/include/datum.class.php +++ b/include/datum.class.php @@ -356,7 +356,7 @@ class datum */ public function formatDatum($datum, $format='Y-m-d H:i:s', $strict=false) { - if(trim($datum)=='') + if (trim($datum ?? '') == '') return ''; $ts=''; diff --git a/include/lehrform.class.php b/include/lehrform.class.php index f293ed065..3c5ca5d56 100644 --- a/include/lehrform.class.php +++ b/include/lehrform.class.php @@ -34,6 +34,8 @@ class lehrform extends basis_db public $bezeichnung_kurz; public $bezeichnung_lang; + public $lehrform_kurzbz; + /** * Konstruktor - Laedt optional eine Lehrform * @param $lehrform_kurbz Lehrform die geladen werden soll (default=null) diff --git a/include/lehrveranstaltung.class.php b/include/lehrveranstaltung.class.php index 26f846f8e..7fa21273b 100644 --- a/include/lehrveranstaltung.class.php +++ b/include/lehrveranstaltung.class.php @@ -655,27 +655,27 @@ class lehrveranstaltung extends basis_db public function validate() { //Laenge Pruefen - if (mb_strlen($this->bezeichnung) > 128) + if (mb_strlen($this->bezeichnung ?? '') > 128) { $this->errormsg = 'Bezeichnung darf nicht laenger als 128 Zeichen sein'; return false; } - if (mb_strlen($this->kurzbz) > 16) + if (mb_strlen($this->kurzbz ?? '') > 16) { $this->errormsg = 'Kurzbez darf nicht laenger als 16 Zeichen sein'; return false; } - if (mb_strlen($this->anmerkung) > 64) + if (mb_strlen($this->anmerkung ?? '') > 64) { $this->errormsg = 'Anmerkung darf nicht laenger als 64 Zeichen sein'; return false; } - if (mb_strlen($this->lehreverzeichnis) > 16) + if (mb_strlen($this->lehreverzeichnis ?? '') > 16) { $this->errormsg = 'Lehreverzeichnis darf nicht laenger als 16 Zeichen sein'; return false; } - if (mb_strlen($this->lvnr) > 32) + if (mb_strlen($this->lvnr ?? '') > 32) { $this->errormsg = 'LVNR darf nicht laenger als 32 Zeichen sein'; return false; diff --git a/include/lvangebot.class.php b/include/lvangebot.class.php index 701d54ab7..1889ae4d0 100644 --- a/include/lvangebot.class.php +++ b/include/lvangebot.class.php @@ -40,6 +40,7 @@ class lvangebot extends basis_db protected $anmeldefenster_start; // timestamp protected $anmeldefenster_ende; // timestamp protected $updateamum; // timestamp + protected $updatenamum; protected $updatevon; // varchar(32) protected $insertamum; // timestamp protected $insertvon; // varchar(32) diff --git a/include/organisationseinheit.class.php b/include/organisationseinheit.class.php index 3eb415760..a35c5b633 100644 --- a/include/organisationseinheit.class.php +++ b/include/organisationseinheit.class.php @@ -51,6 +51,7 @@ class organisationseinheit extends basis_db public $kurzzeichen; + public $freigabegrenze; /** * Konstruktor diff --git a/vilesci/lehre/lehrveranstaltung_details.php b/vilesci/lehre/lehrveranstaltung_details.php index bad2a7d93..45908896d 100644 --- a/vilesci/lehre/lehrveranstaltung_details.php +++ b/vilesci/lehre/lehrveranstaltung_details.php @@ -210,7 +210,7 @@