From: Tim Düsterhus Date: Wed, 19 Feb 2014 00:50:54 +0000 (+0100) Subject: Suppress getimagesize warning X-Git-Tag: 2.0.3~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=12b4cadfd43abbb7fe99bd91a13fa7b14ac2820e;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git Suppress getimagesize warning --- diff --git a/files/lib/system/exporter/MyBB16xExporter.class.php b/files/lib/system/exporter/MyBB16xExporter.class.php index 46b95f2..1611a87 100644 --- a/files/lib/system/exporter/MyBB16xExporter.class.php +++ b/files/lib/system/exporter/MyBB16xExporter.class.php @@ -832,7 +832,7 @@ class MyBB16xExporter extends AbstractExporter { $fileLocation = FileUtil::addTrailingSlash($uploadsPath).$row['attachname']; if (!file_exists($fileLocation)) continue; - if ($imageSize = getimagesize($fileLocation)) { + if ($imageSize = @getimagesize($fileLocation)) { $row['isImage'] = 1; $row['width'] = $imageSize[0]; $row['height'] = $imageSize[1]; diff --git a/files/lib/system/exporter/SMF2xExporter.class.php b/files/lib/system/exporter/SMF2xExporter.class.php index e18e769..1a16824 100644 --- a/files/lib/system/exporter/SMF2xExporter.class.php +++ b/files/lib/system/exporter/SMF2xExporter.class.php @@ -881,7 +881,7 @@ class SMF2xExporter extends AbstractExporter { while ($row = $statement->fetchArray()) { $fileLocation = $this->readOption('attachmentUploadDir').'/'.$row['id_attach'].'_'.$row['file_hash']; - if ($imageSize = getimagesize($fileLocation)) { + if ($imageSize = @getimagesize($fileLocation)) { $row['isImage'] = 1; $row['width'] = $imageSize[0]; $row['height'] = $imageSize[1]; diff --git a/files/lib/system/exporter/VB3or4xExporter.class.php b/files/lib/system/exporter/VB3or4xExporter.class.php index e450c7b..9581a8c 100644 --- a/files/lib/system/exporter/VB3or4xExporter.class.php +++ b/files/lib/system/exporter/VB3or4xExporter.class.php @@ -963,7 +963,7 @@ class VB3or4xExporter extends AbstractExporter { // unable to read file -> abort if (!is_file($file) || !is_readable($file)) continue; - if ($imageSize = getimagesize($file)) { + if ($imageSize = @getimagesize($file)) { $row['isImage'] = 1; $row['width'] = $imageSize[0]; $row['height'] = $imageSize[1];