Skip to content

Commit 6f01ff9

Browse files
committed
undefined constant with tabbed when resetting settings.
1 parent 78e20ae commit 6f01ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redux-core/inc/extensions/tabbed/tabbed/class-redux-tabbed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function output_field( array $field ) {
124124

125125
$default = $field['default'] ?? '';
126126

127-
$value = empty( $this->parent->options[ $orig_field_id ] ) && 0 !== (int) $this->parent->options[ $orig_field_id ] ? $default : $this->parent->options[ $orig_field_id ];
127+
$value = isset( $this->parent->options[ $orig_field_id ] ) && 0 !== (int) $this->parent->options[ $orig_field_id ] ? $this->parent->options[ $orig_field_id ] : $default;
128128

129129
$this->parent->render_class->field_input( $field, $value );
130130

0 commit comments

Comments
 (0)