summaryrefslogtreecommitdiff
path: root/plugins/pdfviewer
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/pdfviewer
parent828b868d973748c2e45f284fb7cf15e33a59b02e (diff)
downloadroundcubemail-plugins-kolab-27e57c73352e1966918cdfe567c32c5a4844be82.tar.gz
Fix undefined or unused variable errors caught in static code analysis
Diffstat (limited to 'plugins/pdfviewer')
-rw-r--r--plugins/pdfviewer/pdfviewer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/pdfviewer/pdfviewer.php b/plugins/pdfviewer/pdfviewer.php
index b6da2d2..93369da 100644
--- a/plugins/pdfviewer/pdfviewer.php
+++ b/plugins/pdfviewer/pdfviewer.php
@@ -83,7 +83,7 @@ class pdfviewer extends rcube_plugin
public function part_structure($args)
{
if (!empty($args['structure']->parts)) {
- foreach ($args['structure']->parts as $i => $part) {
+ foreach (array_keys($args['structure']->parts) as $i) {
$this->fix_mime_part($args['structure']->parts[$i], $args['object']);
}
}