summaryrefslogtreecommitdiff
path: root/plugins/pdfviewer/pdfviewer.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pdfviewer/pdfviewer.php')
-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']);
}
}