mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
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.
This commit is contained in:
parent
ceb80ac123
commit
6977eff106
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue