Skip to content

Commit

Permalink
fix empty() with php5.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
atanas-dev committed May 23, 2017
1 parent 4199407 commit 03b28de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/Field/Gravity_Form_Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public function template() {
}

// No forms have been found
if ( empty( $this->get_options() ) ) {
$options = $this->get_options();
if ( empty( $options ) ) {
?><em><?php _e( 'No Gravity Forms have been found.', 'carbon-fields' ); ?></em><?php
return;
}
Expand Down

0 comments on commit 03b28de

Please sign in to comment.