MDL-14992 sessions - proper destructor method and fixed dispose() behaviour.

This commit is contained in:
stronk7
2009-05-26 14:46:01 +00:00
parent bc76b3c02f
commit 8fdb24f079
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -166,11 +166,11 @@ class pgsql_native_moodle_database extends moodle_database {
* Do NOT use connect() again, create a new instance if needed.
*/
public function dispose() {
parent::dispose(); // Call parent dispose to write/close session and other common stuff before clossing conn
if ($this->pgsql) {
pg_close($this->pgsql);
$this->pgsql = null;
}
parent::dispose();
}