diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-06-24 12:36:26 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-06-24 12:37:59 +0200 |
commit | 6977eff10625a8fd5e8a579aeba108c5b94ea85f (patch) | |
tree | ac29f72cb699a23414b5dd0d75fae3f8173f3f2b /lib | |
parent | ceb80ac123b26b033aac3f724da44a6f78c539ec (diff) | |
download | nextcloud-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.php | 2 |
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(); |