summaryrefslogtreecommitdiff
path: root/plugins/kolab_zpush
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-05-07 10:16:11 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-05-07 10:16:11 (GMT)
commit27e57c73352e1966918cdfe567c32c5a4844be82 (patch)
treeea26ec5a72f4ca39494833105a8bbeb50ce7f4e4 /plugins/kolab_zpush
parent828b868d973748c2e45f284fb7cf15e33a59b02e (diff)
downloadroundcubemail-plugins-kolab-27e57c73352e1966918cdfe567c32c5a4844be82.tar.gz
Fix undefined or unused variable errors caught in static code analysis
Diffstat (limited to 'plugins/kolab_zpush')
-rw-r--r--plugins/kolab_zpush/kolab_zpush_ui.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/kolab_zpush/kolab_zpush_ui.php b/plugins/kolab_zpush/kolab_zpush_ui.php
index 3d2fbcc..0e8e6e9 100644
--- a/plugins/kolab_zpush/kolab_zpush_ui.php
+++ b/plugins/kolab_zpush/kolab_zpush_ui.php
@@ -143,7 +143,6 @@ class kolab_zpush_ui
}
$names[] = $origname;
-
$classes = array('mailbox');
if ($folder_class = $this->rc->folder_classname($folder)) {
@@ -152,9 +151,8 @@ class kolab_zpush_ui
}
$folder_id = 'rcmf' . html_identifier($folder);
- $padding = str_repeat('&nbsp;&nbsp;&nbsp;&nbsp;', $level);
- $table->add_row(array('class' => (($level+1) * $idx++) % 2 == 0 ? 'even' : 'odd'));
+ $table->add_row();
$table->add('subscription', $checkbox_sync->show('', array('value' => $folder, 'id' => $folder_id)));
if ($alarms)
@@ -162,7 +160,7 @@ class kolab_zpush_ui
else
$table->add('alarm', '');
- $table->add(join(' ', $classes), html::label($folder_id, $padding . Q($foldername)));
+ $table->add(join(' ', $classes), html::label($folder_id, Q($foldername)));
}
return $table->show();