mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 09:52:22 +00:00
This commit is contained in:
@@ -56,6 +56,17 @@
|
||||
if($row_ext = pg_fetch_object($result_ext))
|
||||
{
|
||||
$uid = $row_ext->uid;
|
||||
|
||||
if($uid!=$row->chusername)
|
||||
{
|
||||
//Username wurde geaendert
|
||||
$qry = "UPDATE public.tbl_benutzer SET uid='$row->chusername' WHERE uid='$uid'";
|
||||
pg_query($conn, $qry);
|
||||
|
||||
$text.="UID von $uid auf $row->chusername geaendert\n";
|
||||
$uid = $row->chusername;
|
||||
$anzahl_update++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -58,6 +58,17 @@
|
||||
if($row_ext = pg_fetch_object($result_ext))
|
||||
{
|
||||
$uid = $row_ext->mitarbeiter_uid;
|
||||
|
||||
if($uid!=$row->chusername)
|
||||
{
|
||||
//Username wurde geaendert
|
||||
$qry = "UPDATE public.tbl_benutzer SET uid='$row->chusername' WHERE uid='$uid'";
|
||||
pg_query($conn, $qry);
|
||||
|
||||
$text.="UID von $uid auf $row->chusername geaendert\n";
|
||||
$uid = $row->chusername;
|
||||
$anzahl_update++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -61,6 +61,16 @@
|
||||
if($row_ext = pg_fetch_object($result_ext))
|
||||
{
|
||||
$student_uid = $row_ext->student_uid;
|
||||
if($student_uid!=$row->chusername)
|
||||
{
|
||||
//Username wurde geaendert
|
||||
$qry = "UPDATE public.tbl_benutzer SET uid='$row->chusername' WHERE uid='$student_uid'";
|
||||
pg_query($conn, $qry);
|
||||
|
||||
$text.="UID von $student_uid auf $row->chusername geaendert\n";
|
||||
$student_uid = $row->chusername;
|
||||
$anzahl_update++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user