aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/KnownUser/KnownUserMapper.php
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2023-01-03 14:32:31 +0100
committerGitHub <noreply@github.com>2023-01-03 14:32:31 +0100
commit06da8adcd309952b7b83ebfaa88c7259a41cd2ed (patch)
tree47f1a69fe4f452098bfa62689bad43a7604a7a69 /lib/private/KnownUser/KnownUserMapper.php
parent4e877b7ff1977389a67cafd6f028f40f83bc91b3 (diff)
parenta7740c0ae67490aba55e9a05fcb09e7049818341 (diff)
downloadnextcloud-server-06da8adcd309952b7b83ebfaa88c7259a41cd2ed.tar.gz
nextcloud-server-06da8adcd309952b7b83ebfaa88c7259a41cd2ed.zip
Merge pull request #35943 from nextcloud/fix/code-fixes-from-34997
Code fixes from PR 34997
Diffstat (limited to 'lib/private/KnownUser/KnownUserMapper.php')
-rw-r--r--lib/private/KnownUser/KnownUserMapper.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/KnownUser/KnownUserMapper.php b/lib/private/KnownUser/KnownUserMapper.php
index 864ece36345..ce7dc9ead63 100644
--- a/lib/private/KnownUser/KnownUserMapper.php
+++ b/lib/private/KnownUser/KnownUserMapper.php
@@ -32,7 +32,6 @@ use OCP\IDBConnection;
* @method KnownUser mapRowToEntity(array $row)
*/
class KnownUserMapper extends QBMapper {
-
/**
* @param IDBConnection $db
*/
@@ -49,7 +48,7 @@ class KnownUserMapper extends QBMapper {
$query->delete($this->getTableName())
->where($query->expr()->eq('known_to', $query->createNamedParameter($knownTo)));
- return (int) $query->execute();
+ return $query->executeStatement();
}
/**
@@ -61,7 +60,7 @@ class KnownUserMapper extends QBMapper {
$query->delete($this->getTableName())
->where($query->expr()->eq('known_user', $query->createNamedParameter($knownUser)));
- return (int) $query->execute();
+ return $query->executeStatement();
}
/**