mirror of
https://github.com/nextcloud/server.git
synced 2026-04-25 08:08:33 -04:00
fix some warning in the pgsql driver
This commit is contained in:
parent
37dbf48434
commit
1b1c4889fc
2 changed files with 4 additions and 4 deletions
6
3rdparty/MDB2/Driver/Manager/pgsql.php
vendored
6
3rdparty/MDB2/Driver/Manager/pgsql.php
vendored
|
|
@ -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)) {
|
||||
|
|
|
|||
2
3rdparty/MDB2/Driver/pgsql.php
vendored
2
3rdparty/MDB2/Driver/pgsql.php
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue