summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-07-12 12:23:45 +0200
committerGitHub <noreply@github.com>2018-07-12 12:23:45 +0200
commit1fd7ffec0398368df66ee816745ae00e4bbfce31 (patch)
tree126733fccdef7f6ea1d514f0bb607982a9b312c8 /lib
parente3126fa091305a2325711d54d06a127283f27c56 (diff)
parent50ee4e13972b74b8c71950530321a60f81db7aa5 (diff)
downloadnextcloud-server-1fd7ffec0398368df66ee816745ae00e4bbfce31.tar.gz
nextcloud-server-1fd7ffec0398368df66ee816745ae00e4bbfce31.zip
Merge pull request #10211 from nextcloud/bugfix/10203/correctly-init-empty-arrays
Correctly init empty arrays
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Calendar/Resource/Manager.php2
-rw-r--r--lib/private/Calendar/Room/Manager.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Calendar/Resource/Manager.php b/lib/private/Calendar/Resource/Manager.php
index 2d1746cb989..baa8117e85a 100644
--- a/lib/private/Calendar/Resource/Manager.php
+++ b/lib/private/Calendar/Resource/Manager.php
@@ -28,7 +28,7 @@ use OCP\Calendar\Resource\IBackend;
class Manager implements \OCP\Calendar\Resource\IManager {
/** @var IBackend[] holds all registered resource backends */
- private $backends;
+ private $backends = [];
/**
* Registers a resource backend
diff --git a/lib/private/Calendar/Room/Manager.php b/lib/private/Calendar/Room/Manager.php
index 9ddf1f1d7b7..aef9f2ed32b 100644
--- a/lib/private/Calendar/Room/Manager.php
+++ b/lib/private/Calendar/Room/Manager.php
@@ -28,7 +28,7 @@ use OCP\Calendar\Room\IBackend;
class Manager implements \OCP\Calendar\Room\IManager {
/** @var IBackend[] holds all registered resource backends */
- private $backends;
+ private $backends = [];
/**
* Registers a resource backend