diff options
author | Thomas Bruederli <bruederli@kolabsys.com> | 2013-07-17 09:45:47 (GMT) |
---|---|---|
committer | Thomas Bruederli <bruederli@kolabsys.com> | 2013-07-17 09:45:47 (GMT) |
commit | 2f7c7430cf8575ec1710fe53913bbae2dfe7aef4 (patch) | |
tree | efb110f0a6762b7f7299acd01bc04c9bd9a33684 /lib | |
parent | 21c04e0c6bc040736076870c5d93b94bb5ddf013 (diff) | |
download | iRony-2f7c7430cf8575ec1710fe53913bbae2dfe7aef4.tar.gz |
Fixed folder creation as used in MKCALENDAR commands (#2048)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kolab/Utils/DAVBackend.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Kolab/Utils/DAVBackend.php b/lib/Kolab/Utils/DAVBackend.php index 8a4139b..cf165b7 100644 --- a/lib/Kolab/Utils/DAVBackend.php +++ b/lib/Kolab/Utils/DAVBackend.php @@ -229,7 +229,7 @@ class DAVBackend * @param string $uid * @return false|string */ - public function folder_create(string $type, array $properties, string $uid) + public function folder_create($type, array $properties, $uid) { $props = array( 'type' => $type, @@ -255,11 +255,11 @@ class DAVBackend } } - if (!empty($props['name']) && ($fname = kolab_storage::folder_update($props))) { + if (!($fname = kolab_storage::folder_update($props))) { rcube::raise_error(array( 'code' => 600, 'type' => 'php', 'file' => __FILE__, 'line' => __LINE__, - 'message' => "Error creating a new calendar folder '$props[name]':" . kolab_storage::$last_error), + 'message' => "Error creating a new $type folder '$props[name]':" . kolab_storage::$last_error), true, false); return false; } |