new performance fix for the frontend
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@217 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
parent
d794361b87
commit
f23d4400d1
|
|
@ -21,8 +21,7 @@ class Connection{
|
||||||
/* Verbindung herstellen (wenn noch net besteht)*/
|
/* Verbindung herstellen (wenn noch net besteht)*/
|
||||||
function _createConn(){
|
function _createConn(){
|
||||||
//print $this->conn."<br>";
|
//print $this->conn."<br>";
|
||||||
$status = pg_connection_status($this->conn);
|
if($this->conn == NULL){
|
||||||
if($status !== PGSQL_CONNECTION_OK){
|
|
||||||
$this->conn = pg_connect(Config::getPgConnString())
|
$this->conn = pg_connect(Config::getPgConnString())
|
||||||
or die('Verbindungsaufbau fehlgeschlagen: ' . pg_last_error());
|
or die('Verbindungsaufbau fehlgeschlagen: ' . pg_last_error());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue