From 5c1daa59200e077b83bce249561b6d200004d29b Mon Sep 17 00:00:00 2001 From: Rudolf Hangl Date: Tue, 18 Dec 2007 08:42:42 +0000 Subject: [PATCH] --- system/sync/stp/check_prestudentrolle.php | 39 +++++++++++++++++++-- system/sync/stp/sync_stp_vilesci_person.php | 6 ++-- 2 files changed, 40 insertions(+), 5 deletions(-) diff --git a/system/sync/stp/check_prestudentrolle.php b/system/sync/stp/check_prestudentrolle.php index 03ad6b293..e1ea57586 100644 --- a/system/sync/stp/check_prestudentrolle.php +++ b/system/sync/stp/check_prestudentrolle.php @@ -26,6 +26,8 @@ function myaddslashes($var) } $error_log=''; +$error_log_ext=''; +$error_log1=''; $ausgabe=""; $text = ''; $error = ''; @@ -56,14 +58,45 @@ $log_qry_ins=''; daeintrittdat==NULL || $rowall->daeintrittdat=='') + { + $error_log1.="\nKein Eintrittsdatum eingetragen"; + $cont=true; + $error=true; + } + if($error) + { + $error_log.="\n*****\n".$rowall->__person." - ".trim($rowall->chtitel)." ".trim($rowall->chnachname).", ".trim($rowall->chvorname).": ".$error_log1; + $error_log1=''; + $error=false; + if($cont) + { + $fehler++; + continue; + } + } + + + + + + + } +} ?> \ No newline at end of file diff --git a/system/sync/stp/sync_stp_vilesci_person.php b/system/sync/stp/sync_stp_vilesci_person.php index 85c427dfd..eb3cce889 100644 --- a/system/sync/stp/sync_stp_vilesci_person.php +++ b/system/sync/stp/sync_stp_vilesci_person.php @@ -61,6 +61,8 @@ $fehler=0; $dublette=0; $plausi=''; $start=''; +$anzahl_person_gesamt=0; +$anzahl_person_gesamt2=0; $staat=array(); /************************* @@ -289,8 +291,8 @@ echo $start."
"; $log_updates=''; if($result = pg_query($conn, $qry)) { - $anzahl_person_gesamt=pg_num_rows($result); - $error_log_ext.="Anzahl der Datensätze für updates: ".$anzahl_person_gesamt."\n"; + $anzahl_person_gesamt2=pg_num_rows($result); + $error_log_ext.="Anzahl der Datensätze für updates: ".$anzahl_person_gesamt2."\n"; echo nl2br($error_log_ext); while($row=pg_fetch_object($result)) {