Closed pedwik closed 6 years ago
When adding a custom comment for a specific bug, like this:
I get this warning: Notice: Use of undefined constant id - assumed 'id' in C:\Wiki\mw1291\extensions\Mantis\Mantis.php on line 1013
The code is if (array_key_exists($row[id], $conf['comment'])) { $output .= $conf['comment'][$row[id]]."\n"; }
Replacing id with 'id' solves the problem for me.
Thanks for the report.
I thought I had enclosed all keys in quotes. Will fix this later today.
Please note that this is only a notice and does not change the behaviour of the code.
The code still works.
fixed in https://github.com/tessus/mwExtensionMantis/commit/faff3a181c26d7c39023e6480052b0f8cd9fdafb
When adding a custom comment for a specific bug, like this:
I get this warning: Notice: Use of undefined constant id - assumed 'id' in C:\Wiki\mw1291\extensions\Mantis\Mantis.php on line 1013
The code is if (array_key_exists($row[id], $conf['comment'])) { $output .= $conf['comment'][$row[id]]."\n"; }
Replacing id with 'id' solves the problem for me.