diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-09 16:33:34 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-09 16:33:34 +0100 |
commit | fdd06ba1f81d07e4597beb0b5b17f44c296b5921 (patch) | |
tree | 5645ae749ab010014adc1f74a3c365d2fd16498a /lib/private/comments | |
parent | 55a2715eff10e730c8104acc09b122893160cadd (diff) | |
download | nextcloud-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.php | 2 |
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; |