diff --git a/app/views/post/show_partials/_image.php b/app/views/post/show_partials/_image.php index 90734d9..7374915 100755 --- a/app/views/post/show_partials/_image.php +++ b/app/views/post/show_partials/_image.php @@ -19,8 +19,8 @@ 'alt' => $this->post->tags(), 'id' => 'image', 'class' => 'image', - 'width' => $file_sample['width'], - 'height' => $file_sample['height'], + 'width' => $file_sample['width'] ?: $jpeg['width'], + 'height' => $file_sample['height'] ?: $jpeg['height'], 'large_width' => $jpeg['width'], 'large_height' => $jpeg['height'])); ?> post->flash()) : ?>