Skip deleted attachments (MyBB)
authorTim Düsterhus <timwolla@googlemail.com>
Sun, 2 Feb 2014 13:07:00 +0000 (14:07 +0100)
committerTim Düsterhus <timwolla@googlemail.com>
Sun, 2 Feb 2014 13:07:00 +0000 (14:07 +0100)
files/lib/system/exporter/MyBB16xExporter.class.php

index 204e85fef511bebedc059f61232626fbcef05248..46b95f26e1928689b0b67ff1a1499e8a89ab1618 100644 (file)
@@ -25,7 +25,7 @@ use wcf\util\UserUtil;
  * Exporter for MyBB 1.6.x
  * 
  * @author     Tim Duesterhus
- * @copyright  2001-2013 WoltLab GmbH
+ * @copyright  2001-2014 WoltLab GmbH
  * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
  * @package    com.woltlab.wcf.exporter
  * @subpackage system.exporter
@@ -830,6 +830,7 @@ class MyBB16xExporter extends AbstractExporter {
                $statement->execute();
                while ($row = $statement->fetchArray()) {
                        $fileLocation = FileUtil::addTrailingSlash($uploadsPath).$row['attachname'];
+                       if (!file_exists($fileLocation)) continue;
                        
                        if ($imageSize = getimagesize($fileLocation)) {
                                $row['isImage'] = 1;