summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2018-07-13 11:41:53 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-21 15:02:19 +0200
commit94c70524820a51bc34a1539a93cd6bbb4bc31193 (patch)
tree810ab404ccebf976fb922329b9ebc8f211cdf10e /lib/private/Share20
parentb81962e3e865e9187d099bcb958cec9acfc7d593 (diff)
downloadnextcloud-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.php5
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 '';
}
/**