I was working with some contrib code which was sending an empty value to html2text.php. As a result, the following notice was produced:
Notice: Uninitialized string offset: 0 in /home/arborrow/Moodle/code/19stable/lib/html2text.php on line 39
I am attaching a diff file that gets around the notice; however, I'm not sure if setting $chr to an empty string is the best thing. But I think verifying that there is something there to work with in $badStr
{0}is a good idea.
Peace - Anthony
- will be (partly) resolved by
-
MDL-17542 html2text appears to be incompatible with the GPL
-
- Closed
-