mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 01:12:17 +00:00
Projektarbeit/Projektbetreuer MODUL FAS Online
This commit is contained in:
@@ -70,16 +70,18 @@ class person
|
||||
function person($conn, $person_id=null, $unicode=false)
|
||||
{
|
||||
$this->conn = $conn;
|
||||
|
||||
if($unicode)
|
||||
$qry = "SET CLIENT_ENCODING TO 'UNICODE';";
|
||||
else
|
||||
$qry = "SET CLIENT_ENCODING TO 'LATIN9';";
|
||||
|
||||
if(!pg_query($conn,$qry))
|
||||
if(!$unicode==null)
|
||||
{
|
||||
$this->errormsg = "Encoding konnte nicht gesetzt werden\n";
|
||||
return false;
|
||||
if($unicode)
|
||||
$qry = "SET CLIENT_ENCODING TO 'UNICODE';";
|
||||
else
|
||||
$qry = "SET CLIENT_ENCODING TO 'LATIN9';";
|
||||
|
||||
if(!pg_query($conn,$qry))
|
||||
{
|
||||
$this->errormsg = "Encoding konnte nicht gesetzt werden\n";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if($person_id != null)
|
||||
|
||||
Reference in New Issue
Block a user