Skip to content

Commit 98123db

Browse files
committed
Improve empty result check
1 parent 35dce42 commit 98123db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/ppcp-compat/src/PluginDetector/ProductCustomizationDetector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private function is_customized_by_product_addons( \WC_Product $product ): bool {
143143

144144
$addons = \WC_Product_Addons_Helper::get_product_addons( $product->get_id(), false, false, false );
145145

146-
return array() !== $addons;
146+
return ! empty( $addons );
147147
}
148148

149149
/**

0 commit comments

Comments
 (0)