diff options
author | Joas Schilling <coding@schilljs.com> | 2018-07-12 10:41:19 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-07-12 10:41:19 +0200 |
commit | 50ee4e13972b74b8c71950530321a60f81db7aa5 (patch) | |
tree | 126733fccdef7f6ea1d514f0bb607982a9b312c8 /lib/private/Calendar | |
parent | e3126fa091305a2325711d54d06a127283f27c56 (diff) | |
download | nextcloud-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.php | 2 | ||||
-rw-r--r-- | lib/private/Calendar/Room/Manager.php | 2 |
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 |