Commit 0b2b95f4 authored by KR Moorhouse's avatar KR Moorhouse Committed by GitHub

Merge pull request #3095 from wpninjas/issue#3094

Check if setting value is empty, not just ! isset, and return default
parents 5df8e371 9bbcfcc4
......@@ -550,7 +550,7 @@ if( get_option( 'ninja_forms_load_deprecated', FALSE ) && ! ( isset( $_POST[ 'nf
*/
public function get_setting( $key = '', $default = false )
{
if( empty( $key ) || ! isset( $this->settings[ $key ] ) ) return $default;
if( empty( $key ) || ! isset( $this->settings[ $key ] ) || empty( $this->settings[ $key ] ) ) return $default;
return $this->settings[ $key ];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment