Projektarbeit/Projektbetreuer MODUL FAS Online

This commit is contained in:
Andreas Österreicher
2007-07-09 15:14:28 +00:00
parent 9b177e3868
commit 3745744376
14 changed files with 2139 additions and 259 deletions
+11 -9
View File
@@ -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)