Home » Text » Text_Highlighter » Bug #2730
Notice: Undefined offset in Highlighter.php
Details
| Submitted | 2004-11-10 14:20 UTC |
|---|---|
| From | joern_h at gmx dot net |
| Assigned | blindman |
| Status | Closed |
| Package | Text_Highlighter |
| PHP Version | 4.3.8 |
| OS | Windows 2000 |
| Roadmaps | (Not assigned) |
Comments
[2004-11-10 14:20 UTC] joern_h at gmx dot net
Description:
------------
Text_Highlighter Version 0.6.0:
With error_reporting set to E_ALL I get "Notice: Undefined offset: x in Highlighter.php on line 256" with the cpp and css highlighters.
Changing line 256 of Highlighter.php from
if ($this->_subst[$l][$i]) {
to
if (!empty($this->_subst[$l][$i])) {
should solve this problem.