]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix some warning in the pgsql driver
authorRobin Appelman <icewind1991@gmail.com>
Fri, 13 Jan 2012 19:04:59 +0000 (20:04 +0100)
committerRobin Appelman <icewind1991@gmail.com>
Fri, 13 Jan 2012 19:04:59 +0000 (20:04 +0100)
3rdparty/MDB2/Driver/Manager/pgsql.php
3rdparty/MDB2/Driver/pgsql.php

index 490f697aa5be715a55bcecdad0f6207811f13d06..7542e9e8329966bb2e9ae8ec23a75c8633d1dd83 100644 (file)
@@ -499,7 +499,7 @@ class MDB2_Driver_Manager_pgsql extends MDB2_Driver_Manager_Common
      * @return mixed array of view names on success, a MDB2 error on failure
      * @access public
      */
-    function listViews()
+    function listViews($database = null)
     {
         $db =& $this->getDBInstance();
         if (PEAR::isError($db)) {
@@ -631,7 +631,7 @@ class MDB2_Driver_Manager_pgsql extends MDB2_Driver_Manager_Common
      * @return mixed array of table names on success, a MDB2 error on failure
      * @access public
      */
-    function listTables()
+    function listTables($database = null)
     {
         $db =& $this->getDBInstance();
         if (PEAR::isError($db)) {
@@ -922,7 +922,7 @@ class MDB2_Driver_Manager_pgsql extends MDB2_Driver_Manager_Common
      * @return mixed array of sequence names on success, a MDB2 error on failure
      * @access public
      */
-    function listSequences()
+    function listSequences($database = null)
     {
         $db =& $this->getDBInstance();
         if (PEAR::isError($db)) {
index 6108f18dec16e69c4173531d90c6b357dc3e3d54..13fea6906806f2b3f41b85b204181ce67a75eae4 100644 (file)
@@ -1193,7 +1193,7 @@ class MDB2_Result_pgsql extends MDB2_Result_Common
             if ($object_class == 'stdClass') {
                 $row = (object) $row;
             } else {
-                $row = &new $object_class($row);
+                $row = new $object_class($row);
             }
         }
         ++$this->rownum;