From 6977eff10625a8fd5e8a579aeba108c5b94ea85f Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 24 Jun 2015 12:36:26 +0200 Subject: [PATCH] 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. --- lib/private/share/share.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();