diff --git a/post-finder.php b/post-finder.php index 50a938b..a64185a 100644 --- a/post-finder.php +++ b/post-finder.php @@ -295,7 +295,7 @@ public static function render( $name, $value, $options = array() ) {

- %d of %d maximum items', 'post_finder' ), intval( count( $posts ) ), intval( $options['limit'] ) ); ?> You'll need to remove an item from the list before you can add another. + %d of %d maximum items', 'post_finder' ), intval( empty( $posts ) ? 0 : count( $posts ) ), intval( $options['limit'] ) ); ?> You'll need to remove an item from the list before you can add another.