Fix public link for master key

In public link mode there is no session, so the code should use the
public key instead.
This commit is contained in:
Vincent Petry 2017-02-27 14:58:12 +01:00 committed by Bjoern Schiessle
parent b79211e4ae
commit 43c081bdc9
No known key found for this signature in database
GPG key ID: 2378A753E2BF04F6

View file

@ -405,7 +405,7 @@ class KeyManager {
return '';
}
if ($this->util->isMasterKeyEnabled()) {
if (!is_null($uid) && $this->util->isMasterKeyEnabled()) {
$uid = $this->getMasterKeyId();
}