Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Sita committed May 4, 2015
2 parents 4d62857 + 7c96333 commit 9772842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ManualImageCrop.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function cropImage() {
);
wp_update_attachment_metadata($_POST['attachmentId'], $imageMetadata);

$quality = intval($_POST['mic_quality']);
$quality = isset($_POST['mic_quality']) ? intval($_POST['mic_quality']) : 60;

if ( function_exists('wp_get_image_editor') ) {
$img = wp_get_image_editor( $src_file );
Expand Down

0 comments on commit 9772842

Please sign in to comment.