Skip to content

Commit bafefaf

Browse files
use isset vs true check on potentially undefined property
1 parent 2b24857 commit bafefaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/views/parts/lists-overview-details.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
<td>
2727
<?php echo esc_html($f->type); ?>
2828
<?php
29-
if ($f->options && $f->options->date_format) {
29+
if (isset($f->options->date_format)) {
3030
echo esc_html('(' . $f->options->date_format . ')');
3131
}
3232
?>
3333
<?php
34-
if ($f->options && $f->options->choices) {
34+
if (isset($f->options->choices)) {
3535
echo esc_html('(' . join(', ', $f->options->choices) . ')');
3636
}
3737
?>

0 commit comments

Comments
 (0)