From 31d80567a6fdc12cbbf3d6a0c76aca0287b2c5c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Fri, 23 Oct 2020 15:43:41 +0200 Subject: [PATCH] Fixed Warning on User creation if C/O of Adress is missing --- include/adresse.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/adresse.class.php b/include/adresse.class.php index 6fd61673e..ffdb08582 100644 --- a/include/adresse.class.php +++ b/include/adresse.class.php @@ -52,6 +52,7 @@ class adresse extends basis_db public $ext_id; // integer public $rechnungsadresse=false; // boolean public $anmerkung; // string + public $co_name; /** * Konstruktor @@ -272,7 +273,7 @@ class adresse extends basis_db $this->errormsg = 'Gemeinde darf nicht länger als 255 Zeichen sein'; return false; } - + if(mb_strlen($this->co_name)>64) { $this->errormsg = 'Gemeinde darf nicht länger als 64 Zeichen sein'; @@ -325,7 +326,7 @@ class adresse extends basis_db $this->errormsg = 'adresse_id muss eine gueltige Zahl sein'; return false; } - + $qry='UPDATE public.tbl_adresse SET'. ' person_id='.$this->db_add_param($this->person_id, FHC_INTEGER).', '. ' name='.$this->db_add_param($this->name).', '.