summaryrefslogtreecommitdiffstats
path: root/lib/kolab_client_task.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-04-10 21:21:52 +0200
committerAleksander Machniak <alec@alec.pl>2013-04-10 21:21:52 +0200
commit733fb02dea977f9ab19e694ee15ea9b6864821ce (patch)
tree0908c6b3d5256bea0c2986436a58baf1ede24895 /lib/kolab_client_task.php
parent59c70ba49c4c4526d54c5d55892285075577bc77 (diff)
downloadwebadmin-733fb02dea977f9ab19e694ee15ea9b6864821ce.tar.gz
Prevent some PHP warnings when a var is not an array
Diffstat (limited to 'lib/kolab_client_task.php')
-rw-r--r--lib/kolab_client_task.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kolab_client_task.php b/lib/kolab_client_task.php
index 8583e01..893f35e 100644
--- a/lib/kolab_client_task.php
+++ b/lib/kolab_client_task.php
@@ -1020,8 +1020,8 @@ class kolab_client_task
// Get the rights on the entry and attribute level
$data['effective_rights'] = $this->effective_rights($name, $data['id']);
- $attribute_rights = $data['effective_rights']['attribute'];
- $entry_rights = $data['effective_rights']['entry'];
+ $attribute_rights = (array) $data['effective_rights']['attribute'];
+ $entry_rights = (array) $data['effective_rights']['entry'];
// See if "administrators" (those who can delete and add back on the entry
// level) may override the automatically generated contents of auto_form_fields.