Commit 9bbcfcc4 authored by kjohnson's avatar kjohnson

check if setting value is empty, not just ! isset, and return default. Closes #3094.

parent 5df8e371
......@@ -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