diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-19 17:10:42 +0100 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2015-11-19 18:07:39 +0100 |
commit | f6446a64b62e964e043995f6bfeb2118a7dc489a (patch) | |
tree | 1741ae93ea6710e0a22b033b4b1e28ad715c4418 /apps/federation/lib | |
parent | 6f7aa3392f4ec47d03164a9732842ec034aeae48 (diff) | |
download | nextcloud-server-f6446a64b62e964e043995f6bfeb2118a7dc489a.tar.gz nextcloud-server-f6446a64b62e964e043995f6bfeb2118a7dc489a.zip |
fixing OCI and others
Diffstat (limited to 'apps/federation/lib')
-rw-r--r-- | apps/federation/lib/dbhandler.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/federation/lib/dbhandler.php b/apps/federation/lib/dbhandler.php index 2b57dd75419..976a48f8b09 100644 --- a/apps/federation/lib/dbhandler.php +++ b/apps/federation/lib/dbhandler.php @@ -82,7 +82,7 @@ class DbHandler { $result = $query->execute(); if ($result) { - return $this->connection->lastInsertId($this->dbTable); + return $this->connection->lastInsertId('*PREFIX*'.$this->dbTable); } else { $message = 'Internal failure, Could not add ownCloud as trusted server: ' . $url; $message_t = $this->l->t('Could not add server'); @@ -110,7 +110,7 @@ class DbHandler { */ public function getAllServer() { $query = $this->connection->getQueryBuilder(); - $query->select('url', 'id', 'status')->from($this->dbTable); + $query->select(['url', 'id', 'status'])->from($this->dbTable); $result = $query->execute()->fetchAll(); return $result; } |