Skip to content

Commit

Permalink
Merge pull request #3 from jeherve/fix/dailymotion-test-missing-id
Browse files Browse the repository at this point in the history
Dailymotion shortcode: fix failing test when ID is an empty string
  • Loading branch information
MathildeS authored Jul 20, 2016
2 parents da70237 + 8f8b2ca commit 0641c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/shortcodes/dailymotion.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function dailymotion_shortcode( $atts ) {
}
}

if ( isset( $atts['id'] ) ) {
if ( isset( $atts['id'] ) && ! empty( $atts['id'] ) ) {
$id = $atts['id'];
} else {
return '<!--Dailymotion error: bad or missing ID-->';
Expand Down

0 comments on commit 0641c28

Please sign in to comment.