summaryrefslogtreecommitdiffstats
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-25 08:38:51 +0200
commit1c368754299495a173ffef01725b6e1c763f7af2 (patch)
tree5907a204865aceafe81f6606252e35de2ee35df4
parentf4e0b344c45f3c68c4de70b78bcb6b5f13039229 (diff)
downloadnextcloud-server-1c368754299495a173ffef01725b6e1c763f7af2.tar.gz
nextcloud-server-1c368754299495a173ffef01725b6e1c763f7af2.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.
-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 7c98d87cced..7e693380057 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -1203,7 +1203,7 @@ class Share extends \OC\Share\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();