This commit is contained in:
Andreas Österreicher
2009-03-11 14:26:37 +00:00
parent eb0a6aad73
commit fbde36a912
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -2933,7 +2933,7 @@ if(!$error)
{
if(is_numeric($person_id))
{
$qry = "SELECT kontakt FROM public.tbl_kontakt WHERE kontakttyp='email' AND person_id='$person_id' ORDER BY zustellung DESC LIMIT 1";
$qry = "SELECT kontakt FROM public.tbl_kontakt WHERE kontakttyp='email' AND person_id='$person_id' AND zustellung=true LIMIT 1";
if($result = pg_query($conn, $qry))
{
if($row = pg_fetch_object($result))