summaryrefslogtreecommitdiffstats
path: root/apps/federation/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federation/lib')
-rw-r--r--apps/federation/lib/dbhandler.php4
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'];
}
/**