summaryrefslogtreecommitdiffstats
path: root/lib/private/share/share.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-07-07 22:08:21 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-07-21 15:25:47 +0200
commitf77e5f411dda91a7c4fc70c090825a036b7b1135 (patch)
tree6cc6cc88d7f3bb3ff137e2da5130e933ca1ab840 /lib/private/share/share.php
parent516f7e8299c309ed909259c90c23cb0ce6a8e4f7 (diff)
downloadnextcloud-server-f77e5f411dda91a7c4fc70c090825a036b7b1135.tar.gz
nextcloud-server-f77e5f411dda91a7c4fc70c090825a036b7b1135.zip
Fix existing usages by removing the quotes
Diffstat (limited to 'lib/private/share/share.php')
-rw-r--r--lib/private/share/share.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index e3364e0de0b..41b60ecc638 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -1203,9 +1203,9 @@ class Share extends Constants {
private static function getShareOwner(IDBConnection $connection, $shareId) {
$qb = $connection->getQueryBuilder();
- $qb->select('`uid_owner`')
- ->from('`*PREFIX*share`')
- ->where('`id` = :shareId')
+ $qb->select('uid_owner')
+ ->from('*PREFIX*share')
+ ->where($qb->expr()->eq('id', $qb->createParameter('shareId')))
->setParameter(':shareId', $shareId);
$result = $qb->execute();
$result = $result->fetch();
@@ -1253,9 +1253,9 @@ class Share extends Constants {
}
$qb = $connection->getQueryBuilder();
- $qb->update('`*PREFIX*share`')
- ->set('`share_with`', ':pass')
- ->where('`id` = :shareId')
+ $qb->update('*PREFIX*share')
+ ->set('share_with', $qb->createParameter('pass'))
+ ->where($qb->expr()->eq('id', $qb->createParameter('shareId')))
->setParameter(':pass', is_null($password) ? null : \OC::$server->getHasher()->hash($password))
->setParameter(':shareId', $shareId);