Skip to content

Commit

Permalink
Merge pull request #198 from osyrot/bug/3.0.2-php-8.x-fatal-error
Browse files Browse the repository at this point in the history
bug: address PHP 8.x fatal error
  • Loading branch information
lcaple authored Dec 15, 2023
2 parents 7e82134 + 63f88ec commit 6124f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widgets/class.uw-widget-visibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public static function filter_widget( $instance )
$condition_result = true;
else if ( is_singular() && $term[1] && has_term( $term[1], $term[0] ) )
$condition_result = true;
else if ( is_singular() && $terms & !is_wp_error( $terms ) )
else if ( is_singular() && $terms && !is_wp_error( $terms ) )
$condition_result = true;
break;
}
Expand Down

0 comments on commit 6124f2d

Please sign in to comment.