Skip to content

Commit

Permalink
Fix check for width, unit tests now pass!
Browse files Browse the repository at this point in the history
  • Loading branch information
vagrant committed Sep 23, 2014
1 parent ca3a376 commit 48127c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpthumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ function wpthumb_post_image( $null, $id, $args ) {

$args = wp_parse_args( $args );

if ( empty( $args[0] ) )
if ( ! empty( $args[0] ) )
$args['width'] = $args[0];

if ( ! empty( $args[1] ) )
Expand Down

0 comments on commit 48127c8

Please sign in to comment.