From 14db1508f3eae22deb2cbf2ec08cda6236e58047 Mon Sep 17 00:00:00 2001 From: Manfred Kindl Date: Tue, 16 Jul 2013 15:53:40 +0000 Subject: [PATCH] =?UTF-8?q?In=20der=20Datei=20fasDBDML.php=20den=20imagede?= =?UTF-8?q?lete-Befehl=20erweitert,=20damit=20auch=20der=20Fotostatus=20"a?= =?UTF-8?q?kzeptiert"=20der=20Person=20gel=C3=B6scht=20wird.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/fasDBDML.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/fasDBDML.php b/content/fasDBDML.php index 8af4c9cb8..fc531bde1 100644 --- a/content/fasDBDML.php +++ b/content/fasDBDML.php @@ -531,7 +531,8 @@ if(!$error) } else { - $qry = "UPDATE public.tbl_person SET foto=null WHERE person_id=".$db->db_add_param($_POST['person_id']); + $qry = "UPDATE public.tbl_person SET foto=null WHERE person_id=".$db->db_add_param($_POST['person_id']).";"; + $qry.= "DELETE FROM public.tbl_person_fotostatus where fotostatus_kurzbz='akzeptiert' AND person_id=".$db->db_add_param($_POST['person_id']); if($db->db_query($qry)) { $qry = "DELETE FROM public.tbl_akte WHERE person_id=".$db->db_add_param($_POST['person_id'])." AND dokument_kurzbz='Lichtbil'";