Ignore missing attachments in vB
authorTim Düsterhus <timwolla@bastelstu.be>
Tue, 17 Dec 2013 14:48:28 +0000 (15:48 +0100)
committerTim Düsterhus <timwolla@bastelstu.be>
Tue, 17 Dec 2013 14:49:16 +0000 (15:49 +0100)
files/lib/system/exporter/VB3or4xExporter.class.php

index 0f9180881f59e37f709bd747f4e10a45ec563181..bc21c312f35715e9b85eeb87e8cd72e5f7c27cca 100644 (file)
@@ -961,6 +961,8 @@ class VB3or4xExporter extends AbstractExporter {
                                        break;
                                }
                                
+                               // unable to read file -> abort
+                               if (!is_file($file) || !is_readable($file)) continue;
                                if ($imageSize = getimagesize($file)) {
                                        $row['isImage'] = 1;
                                        $row['width'] = $imageSize[0];