summaryrefslogtreecommitdiffstats
path: root/lib/private/comments
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-12-09 16:33:34 +0100
committerArthur Schiwon <blizzz@owncloud.com>2015-12-09 16:33:34 +0100
commitfdd06ba1f81d07e4597beb0b5b17f44c296b5921 (patch)
tree5645ae749ab010014adc1f74a3c365d2fd16498a /lib/private/comments
parent55a2715eff10e730c8104acc09b122893160cadd (diff)
downloadnextcloud-server-fdd06ba1f81d07e4597beb0b5b17f44c296b5921.tar.gz
nextcloud-server-fdd06ba1f81d07e4597beb0b5b17f44c296b5921.zip
use getLastInsertId from query builder for convenience
Diffstat (limited to 'lib/private/comments')
-rw-r--r--lib/private/comments/manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/comments/manager.php b/lib/private/comments/manager.php
index 05f981f244d..09e59f28370 100644
--- a/lib/private/comments/manager.php
+++ b/lib/private/comments/manager.php
@@ -455,7 +455,7 @@ class Manager implements ICommentsManager {
->execute();
if ($affectedRows > 0) {
- $comment->setId(strval($this->dbConn->lastInsertId('*PREFIX*comments')));
+ $comment->setId(strval($qb->getLastInsertId()));
}
return $affectedRows > 0;