increasing performance of the web frontend

git-svn-id: file:///home/jan/tmp/wetterstation/trunk@216 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
losinshi 2007-01-11 00:39:47 +00:00
parent 06ceddf51a
commit d794361b87
2 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,9 @@ class Connection{
/* Verbindung herstellen (wenn noch net besteht)*/
function _createConn(){
if($this->conn == NULL){
//print $this->conn."<br>";
$status = pg_connection_status($this->conn);
if($status !== PGSQL_CONNECTION_OK){
$this->conn = pg_connect(Config::getPgConnString())
or die('Verbindungsaufbau fehlgeschlagen: ' . pg_last_error());
}

View File

@ -51,7 +51,7 @@ class ModuleSet{
}
function &_getConnInstance(){
if($connInstance == NULL){
if($this->connInstance == NULL){
$this->connInstance = new Connection();
}
return $this->connInstance;