From 6874870274e724ae871e32425a98b72a2da02e63 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 27 Feb 2005 21:32:06 +0000 Subject: [PATCH] silently fixing 0 based array --- etemplate/inc/class.nextmatch_widget.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php index afbee259c0..6bc94b8a25 100644 --- a/etemplate/inc/class.nextmatch_widget.inc.php +++ b/etemplate/inc/class.nextmatch_widget.inc.php @@ -161,6 +161,10 @@ $value['start'] = 0; $total = $obj->$method($value,$value['rows'],$readonlys['rows']); } + if (is_array($value['rows'][0])) // fixed 0 based arrays + { + array_unshift($value['rows'],false); + } list($template,$options) = explode(',',$cell['size']); if ($template) // template name can be supplied either in $value['template'] or the options-field {