Skip to content

Commit

Permalink
šŸ› fix(Helper.php): add isset check for $promo['lite_only'] to preventā€¦
Browse files Browse the repository at this point in the history
ā€¦ undefined index error
  • Loading branch information
nurul-umbhiya committed Nov 30, 2023
1 parent 1af69cc commit fa6357d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Admin/Notices/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static function dokan_get_promo_notices() {
continue;
}

if ( wc_string_to_bool( $promo['lite_only'] ) && self::is_pro_license_active() ) {
if ( isset( $promo['lite_only'] ) && wc_string_to_bool( $promo['lite_only'] ) && self::is_pro_license_active() ) {
continue;
}

Expand Down

0 comments on commit fa6357d

Please sign in to comment.