Suppress getimagesize warning
authorTim Düsterhus <timwolla@bastelstu.be>
Wed, 19 Feb 2014 00:50:54 +0000 (01:50 +0100)
committerTim Düsterhus <timwolla@bastelstu.be>
Wed, 19 Feb 2014 00:50:54 +0000 (01:50 +0100)
files/lib/system/exporter/MyBB16xExporter.class.php
files/lib/system/exporter/SMF2xExporter.class.php
files/lib/system/exporter/VB3or4xExporter.class.php

index 46b95f26e1928689b0b67ff1a1499e8a89ab1618..1611a8786d7991e03a1b44b99def20c58da5643c 100644 (file)
@@ -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];
index e18e7694abb36a31910219da16a643f34d31ffd0..1a1682478d82189f57296cd8bba68664f29adc37 100644 (file)
@@ -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];
index e450c7b3b9c74061c9ef9b7b09d92596ec2900bd..9581a8c6c6e2a15a6acf42bf053c1073c7249c39 100644 (file)
@@ -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];