diff --git a/src/Helper/Functions.php b/src/Helper/Functions.php index 0f372cd6..6ce426ca 100755 --- a/src/Helper/Functions.php +++ b/src/Helper/Functions.php @@ -189,6 +189,11 @@ function courier_notices_get_notices( $args = array() ) { */ function courier_notices_display_notices( $args = array() ) { $courier_placement = ( ! empty( $args['placement'] ) ) ? $args['placement'] : ''; + + if ( empty( $courier_placement ) ) { + return false; + } + $courier_style = ( ! empty( $args['style'] ) ) ? $args['style'] : ''; $courier_options = get_option( 'courier_settings', array() ); $courier_notices_view = new View();