From ea73ca2dc447b36eb080e4c026f31a223122a09c Mon Sep 17 00:00:00 2001 From: "Guillaume (ioguix) de Rorthais" Date: Tue, 28 Sep 2010 01:05:38 +0200 Subject: [PATCH] Remove a useless reference to global var $data from the Postgres class itself --- classes/database/Postgres.php | 3 +-- classes/database/Postgres80.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php index 0178e327..f579f299 100755 --- a/classes/database/Postgres.php +++ b/classes/database/Postgres.php @@ -3498,11 +3498,10 @@ class Postgres extends ADODB_base { * @return a recordset */ function getConstraintsWithFields($table) { - global $data; $c_schema = $this->_schema; $this->clean($c_schema); - $data->clean($table); + $this->clean($table); // get the max number of col used in a constraint for the table $sql = "SELECT DISTINCT diff --git a/classes/database/Postgres80.php b/classes/database/Postgres80.php index b6a6b02b..b64327b7 100644 --- a/classes/database/Postgres80.php +++ b/classes/database/Postgres80.php @@ -176,11 +176,10 @@ class Postgres80 extends Postgres81 { * @return a recordset */ function getConstraintsWithFields($table) { - global $data; $c_schema = $this->_schema; $this->clean($c_schema); - $data->clean($table); + $this->clean($table); // get the max number of col used in a constraint for the table $sql = "SELECT DISTINCT -- 2.39.5