summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-06-24 12:36:26 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-06-24 12:37:59 +0200
commit6977eff10625a8fd5e8a579aeba108c5b94ea85f (patch)
treeac29f72cb699a23414b5dd0d75fae3f8173f3f2b /lib
parentceb80ac123b26b033aac3f724da44a6f78c539ec (diff)
downloadnextcloud-server-6977eff10625a8fd5e8a579aeba108c5b94ea85f.tar.gz
nextcloud-server-6977eff10625a8fd5e8a579aeba108c5b94ea85f.zip
set NULL correctly in password update
Old code used 'NULL' but docterine wants null. Now it is possible again to remove the password from a link share.
Diffstat (limited to 'lib')
-rw-r--r--lib/private/share/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index 027c518f9f1..954071fdd6c 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -1220,7 +1220,7 @@ class Share extends Constants {
$qb->update('`*PREFIX*share`')
->set('`share_with`', ':pass')
->where('`id` = :shareId')
- ->setParameter(':pass', is_null($password) ? 'NULL' : \OC::$server->getHasher()->hash($password))
+ ->setParameter(':pass', is_null($password) ? null : \OC::$server->getHasher()->hash($password))
->setParameter(':shareId', $shareId);
$qb->execute();