From 93e89d89a889389880a4ee9d5283291e651b3a55 Mon Sep 17 00:00:00 2001 From: Manfred Kindl Date: Thu, 9 Aug 2012 10:09:26 +0000 Subject: [PATCH] =?UTF-8?q?Fehler=20ausgebessert.=20Hochkomma=20=C3=BCbers?= =?UTF-8?q?ehen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/ampel.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ampel.class.php b/include/ampel.class.php index 0a26bc39b..79992be19 100755 --- a/include/ampel.class.php +++ b/include/ampel.class.php @@ -153,8 +153,8 @@ class ampel extends basis_db */ public function isBestaetigt($user, $ampel_id) { - $qry = "SELECT 1 FROM public.tbl_ampel_benutzer_bestaetigt WHERE ampel_id=".$this->db_add_param($ampel_id, FHC_INTEGER)."' AND uid=".$this->db_add_param($user); - + $qry = "SELECT 1 FROM public.tbl_ampel_benutzer_bestaetigt WHERE ampel_id=".$this->db_add_param($ampel_id, FHC_INTEGER)." AND uid=".$this->db_add_param($user); + if($result = $this->db_query($qry)) { if($this->db_num_rows($result)>0)