$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];
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];
// 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];