mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Check if mapped value is not null before returning true
This commit is contained in:
parent
22ddf2597f
commit
fbeae9b0ed
1 changed files with 4 additions and 1 deletions
|
@ -120,7 +120,10 @@ class Settings implements ContainerInterface {
|
|||
* @return bool
|
||||
*/
|
||||
public function has( string $id ) {
|
||||
if ( $this->settings_map_helper->has_mapped_key( $id ) ) {
|
||||
if (
|
||||
$this->settings_map_helper->has_mapped_key( $id )
|
||||
&& ! is_null( $this->settings_map_helper->mapped_value( $id ) )
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue