From a412db7356eb9e6ed64d1637b1617be5d38a1ff5 Mon Sep 17 00:00:00 2001 From: ma0068 Date: Fri, 11 Nov 2022 14:27:06 +0100 Subject: [PATCH] Attribut raumtyp_aktiv als boolean parsen --- include/raumtyp.class.php | 6 ++---- rdf/raumtyp.rdf.php | 10 +++++----- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/include/raumtyp.class.php b/include/raumtyp.class.php index 6aa54254e..ec274df7a 100644 --- a/include/raumtyp.class.php +++ b/include/raumtyp.class.php @@ -68,8 +68,7 @@ class raumtyp extends basis_db $raumtyp_obj->beschreibung = $row->beschreibung; $raumtyp_obj->raumtyp_kurzbz = $row->raumtyp_kurzbz; - $raumtyp_obj->aktiv = $row->aktiv; - + $raumtyp_obj->aktiv = $this->db_parse_bool($row->aktiv); $this->result[] = $raumtyp_obj; } @@ -101,8 +100,7 @@ class raumtyp extends basis_db { $this->beschreibung = $row->beschreibung; $this->raumtyp_kurzbz = $row->kurzbz; - $this->aktiv = $row->aktiv; - + $this->aktiv = $this->db_parse_bool($row->aktiv); } else { diff --git a/rdf/raumtyp.rdf.php b/rdf/raumtyp.rdf.php index 56da76b5b..1f7289747 100644 --- a/rdf/raumtyp.rdf.php +++ b/rdf/raumtyp.rdf.php @@ -56,11 +56,11 @@ foreach ($raumtypDAO->result as $rt) { ?> - - raumtyp_kurzbz ?> - beschreibung ?> - aktiv=='t'?'true':'false') ?> - + + raumtyp_kurzbz ?> + beschreibung ?> + aktiv ? "true" : "false") ?> +