Skip to content

Commit 6f2c75c

Browse files
committed
fix Warning: array_key_exists() expects parameter 2 to be array, null given
1 parent dd1a29f commit 6f2c75c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mantis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ function renderMantis( $input, $args, $mwParser )
10211021
$comment = trim(substr($row['summary'], 0, $conf['summarylength']))."...";
10221022
}
10231023
}
1024-
if (array_key_exists($row['id'], $conf['comment']))
1024+
if ($conf['comment'] && array_key_exists($row['id'], $conf['comment']))
10251025
{
10261026
$comment = $conf['comment'][$row['id']];
10271027
}

0 commit comments

Comments
 (0)