summaryrefslogtreecommitdiff
path: root/plugins/kolab_notes
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-11-21 09:03:18 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-11-21 09:03:18 (GMT)
commitac4f6e75622c76e32d6a34fcbfb7b57ead18fd92 (patch)
tree7004e44eff67616b8cbc306c8652809f885b7b8d /plugins/kolab_notes
parent5738a7a7eca4256f39b279918d77f354cb9d4e28 (diff)
downloadroundcubemail-plugins-kolab-ac4f6e75622c76e32d6a34fcbfb7b57ead18fd92.tar.gz
Avoid unused variables (also fixed some bugs) found in static code analysis
Diffstat (limited to 'plugins/kolab_notes')
-rw-r--r--plugins/kolab_notes/kolab_notes.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/kolab_notes/kolab_notes.php b/plugins/kolab_notes/kolab_notes.php
index 4def121..c2b4945 100644
--- a/plugins/kolab_notes/kolab_notes.php
+++ b/plugins/kolab_notes/kolab_notes.php
@@ -893,7 +893,7 @@ class kolab_notes extends rcube_plugin
if (!empty($args['param']['with_notes'])) {
$uids = explode(',', $args['param']['with_notes']);
$list = $args['param']['notes_list'];
- $attachments = array();
+
foreach ($uids as $uid) {
if ($note = $this->get_note(array('uid' => $uid, 'list' => $list))) {
$args['attachments'][] = array(