From: Nigel M. <ora...@us...> - 2006-08-07 22:48:57
|
Update of /cvsroot/geshi/geshi-src/geshi In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv25831/geshi Modified Files: functions.geshi.php Log Message: Fixed E_NOTICE when count($splits) <= 1 Index: functions.geshi.php =================================================================== RCS file: /cvsroot/geshi/geshi-src/geshi/functions.geshi.php,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** functions.geshi.php 7 Aug 2006 17:53:16 -0000 1.37 --- functions.geshi.php 7 Aug 2006 22:48:55 -0000 1.38 *************** *** 195,198 **** --- 195,199 ---- $haystack_offset = substr($haystack, $offset); $table = array(); + $length = 0; $flags = PREG_SPLIT_OFFSET_CAPTURE; if ($need_table) $flags |= PREG_SPLIT_DELIM_CAPTURE; |