diff options
author | Björn Schießle <bjoern@schiessle.org> | 2015-11-19 17:49:43 +0100 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2015-11-20 15:48:20 +0100 |
commit | a63a1043b6a40193a44d2fb1b702a775bb761c8d (patch) | |
tree | 74aa72a8ec9e39bbfc4a3d427f0abf1e8bf4ed5d /apps/federation/lib | |
parent | f6446a64b62e964e043995f6bfeb2118a7dc489a (diff) | |
download | nextcloud-server-a63a1043b6a40193a44d2fb1b702a775bb761c8d.tar.gz nextcloud-server-a63a1043b6a40193a44d2fb1b702a775bb761c8d.zip |
unit tests
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 976a48f8b09..61ba5c87cfd 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('*PREFIX*'.$this->dbTable); + return (int)$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'); @@ -231,7 +231,7 @@ class DbHandler { ->setParameter('url_hash', $hash); $result = $query->execute()->fetch(); - return $result['status']; + return (int)$result['status']; } /** |