Skip to content

Commit

Permalink
fix Warning: array_key_exists() expects parameter 2 to be array, null…
Browse files Browse the repository at this point in the history
… given
  • Loading branch information
tessus committed Jun 16, 2019
1 parent dd1a29f commit 6f2c75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mantis.php
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ function renderMantis( $input, $args, $mwParser )
$comment = trim(substr($row['summary'], 0, $conf['summarylength']))."...";
}
}
if (array_key_exists($row['id'], $conf['comment']))
if ($conf['comment'] && array_key_exists($row['id'], $conf['comment']))
{
$comment = $conf['comment'][$row['id']];
}
Expand Down

0 comments on commit 6f2c75c

Please sign in to comment.