summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/db/statementwrapper.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/db/statementwrapper.php b/lib/private/db/statementwrapper.php
index 8d704f0bbe7..14b68d60f43 100644
--- a/lib/private/db/statementwrapper.php
+++ b/lib/private/db/statementwrapper.php
@@ -79,8 +79,9 @@ class OC_DB_StatementWrapper {
return false;
}
if ($this->isManipulation) {
+ $count = $this->statement->rowCount();
$this->statement->closeCursor();
- return $this->statement->rowCount();
+ return $count;
} else {
return $this;
}