Spotted a few errors, which were producing something like:
Notice: Uninitialized string offset: 2 in .../modules/mod_evo_frontpage/helper.php on line 421
Notice: Uninitialized string offset: 2 in .../modules/mod_evo_frontpage/helper.php on line 421
Notice: Uninitialized string offset: 2 in .../modules/mod_evo_frontpage/helper.php on line 421
Notice: Uninitialized string offset: 0 in .../modules/mod_evo_frontpage/helper.php on line 421
Notice: Uninitialized string offset: 0 in .../modules/mod_evo_frontpage/helper.php on line 421
Notice: Uninitialized string offset: 0 in .../modules/mod_evo_frontpage/helper.php on line 421
To get rid of first 3 I changed code
while (!($strip[$n]==" " && $n>$limit) && $n < strlen($strip)) $n++;
to
while (!($strip[$n]==" " && $n>$limit) && $n < strlen($strip) - 1) $n++;
How to get rid of the other three errors?
Fixed that with:
Initialization of
and checking for array: