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 e5468409b5
commit c215255771
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 1 additions and 1 deletions

View File

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