diff options
author | Joas Schilling <coding@schilljs.com> | 2016-11-30 12:04:19 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-11-30 12:04:19 +0100 |
commit | b4d76b16b4ae96d2da8ab6dc48144e0697bbb817 (patch) | |
tree | 7143a30527356dba523957d643cdb58a06a241fc /apps/dav/lib/CalDAV | |
parent | 2854e2f41322e4f87466ce4442f09a0c4cc2fcec (diff) | |
download | nextcloud-server-b4d76b16b4ae96d2da8ab6dc48144e0697bbb817.tar.gz nextcloud-server-b4d76b16b4ae96d2da8ab6dc48144e0697bbb817.zip |
Add tests for the base provider
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib/CalDAV')
-rw-r--r-- | apps/dav/lib/CalDAV/Activity/Provider/Base.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/Activity/Provider/Base.php b/apps/dav/lib/CalDAV/Activity/Provider/Base.php index 43c3403c5b8..72fdd681b8a 100644 --- a/apps/dav/lib/CalDAV/Activity/Provider/Base.php +++ b/apps/dav/lib/CalDAV/Activity/Provider/Base.php @@ -62,7 +62,7 @@ abstract class Base implements IProvider { * @return array */ protected function generateObjectParameter($eventData) { - if (!is_array($eventData)) { + if (!is_array($eventData) || !isset($eventData['id']) || !isset($eventData['name'])) { throw new \InvalidArgumentException(); }; |