diff --git a/system/sync/stp/sync_stp_vilesci_adressen.php b/system/sync/stp/sync_stp_vilesci_adressen.php index 6dd63b4ef..7b787fe94 100644 --- a/system/sync/stp/sync_stp_vilesci_adressen.php +++ b/system/sync/stp/sync_stp_vilesci_adressen.php @@ -59,6 +59,7 @@ $anzahl_fehler=0; $eingefuegt=0; $fehler=0; $dublette=0; +$updtaes=0; $plausi=''; $start=''; $staat=array(); @@ -228,7 +229,7 @@ if($result = pg_query($conn, $qry)) else { $eingefuegt++; - + pg_query($conn, "COMMIT"); } } else @@ -310,8 +311,17 @@ if($result = pg_query($conn, $qry)) if(strlen(trim($sql))>0) { - $sql="UPDATE public.tbl_adresse SET ".$sql.";"; - + $sql="UPDATE public.tbl_adresse SET ".$sql." WHERE person_id='".$person_id."';"; + if(!$result_neu = pg_query($conn, $sql)) + { + $error_log.= $sql."\n".pg_last_error($conn)." \n"; + pg_query($conn, "ROLLBACK"); + } + else + { + $updates++; + pg_query($conn, "COMMIT"); + } } } } diff --git a/system/sync/stp/sync_stp_vilesci_prestudent.php b/system/sync/stp/sync_stp_vilesci_prestudent.php index 95cca013a..8ef680028 100644 --- a/system/sync/stp/sync_stp_vilesci_prestudent.php +++ b/system/sync/stp/sync_stp_vilesci_prestudent.php @@ -199,9 +199,10 @@ if($result = pg_query($conn, $qry)) } if($row->chkalendersemstataend=='' || $row->chkalendersemstataend==NULL) { - $error_log1.="\nKalenderSemStatAend (Studiensemester) nicht eingetragen"; - $cont=true; - $error=true; + $row->chkalendersemstataend='W07';// Standardwert WS2007; von FH-StP gewünscht; 11.12.07 + //$error_log1.="\nKalenderSemStatAend (Studiensemester) nicht eingetragen"; + //$cont=true; + //$error=true; } if($error) {