PHP 5.6 compatibility

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2018-03-06 14:05:14 +01:00
parent 18968e84fc
commit 173388dcd4
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ class MailPlugin implements ISearchPlugin {
return true;
}
public function isCurrentUser(ICloudId $cloud): bool {
public function isCurrentUser(ICloudId $cloud) {
$currentUser = $this->userSession->getUser();
return $currentUser instanceof IUser ? $currentUser->getUID() === $cloud->getUser() : false;
}