diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-13 11:41:53 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-21 15:02:19 +0200 |
commit | 94c70524820a51bc34a1539a93cd6bbb4bc31193 (patch) | |
tree | 810ab404ccebf976fb922329b9ebc8f211cdf10e /lib/private/Share20 | |
parent | b81962e3e865e9187d099bcb958cec9acfc7d593 (diff) | |
download | nextcloud-server-94c70524820a51bc34a1539a93cd6bbb4bc31193.tar.gz nextcloud-server-94c70524820a51bc34a1539a93cd6bbb4bc31193.zip |
allow 'note' to be null
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib/private/Share20')
-rw-r--r-- | lib/private/Share20/Share.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Share20/Share.php b/lib/private/Share20/Share.php index 73373c7823d..e54497c9b55 100644 --- a/lib/private/Share20/Share.php +++ b/lib/private/Share20/Share.php @@ -322,7 +322,10 @@ class Share implements \OCP\Share\IShare { * @inheritdoc */ public function getNote() { - return $this->note; + if (is_string($this->note)) { + return $this->note; + } + return ''; } /** |