summaryrefslogtreecommitdiffstats
path: root/lib/private/Calendar
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-07-12 10:41:19 +0200
committerJoas Schilling <coding@schilljs.com>2018-07-12 10:41:19 +0200
commit50ee4e13972b74b8c71950530321a60f81db7aa5 (patch)
tree126733fccdef7f6ea1d514f0bb607982a9b312c8 /lib/private/Calendar
parente3126fa091305a2325711d54d06a127283f27c56 (diff)
downloadnextcloud-server-50ee4e13972b74b8c71950530321a60f81db7aa5.tar.gz
nextcloud-server-50ee4e13972b74b8c71950530321a60f81db7aa5.zip
Correctly init empty arrays
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Calendar')
-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