summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Security/RateLimiting/Backend/DatabaseBackend.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Security/RateLimiting/Backend/DatabaseBackend.php b/lib/private/Security/RateLimiting/Backend/DatabaseBackend.php
index 5f579bfef85..1415b5c4131 100644
--- a/lib/private/Security/RateLimiting/Backend/DatabaseBackend.php
+++ b/lib/private/Security/RateLimiting/Backend/DatabaseBackend.php
@@ -74,7 +74,7 @@ class DatabaseBackend implements IBackend {
$qb->delete(self::TABLE_NAME)
->where(
$qb->expr()->lte('delete_after', $qb->createNamedParameter($currentTime, IQueryBuilder::PARAM_DATE))
- );
+ )
->executeStatement();
$qb = $this->dbConnection->getQueryBuilder();
@@ -88,10 +88,10 @@ class DatabaseBackend implements IBackend {
);
$cursor = $qb->executeQuery();
- $row = $cursor->fetch();
+ $row = $cursor->fetchOne();
$cursor->closeCursor();
- return (int)$row['count'];
+ return (int)$row;
}
/**