From e844de99cd16b858de8c3ff27f1667b1b610fcaf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 14 Feb 2007 07:11:42 +0000 Subject: [PATCH] "fixed previous php5.2 fix, which caused readonlys set in the get_rows function not to work" --- etemplate/inc/class.nextmatch_widget.inc.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php index 6cadec5ce1..83a3256762 100644 --- a/etemplate/inc/class.nextmatch_widget.inc.php +++ b/etemplate/inc/class.nextmatch_widget.inc.php @@ -224,14 +224,9 @@ } else { - if (is_array($readonlys)) - { - $total = $value['total'] = $obj->$method($value,$value['rows'],$readonlys['rows']); - } - else - { - $total = $value['total'] = $obj->$method($value,$value['rows'],$readonlys); - } + if (!is_array($readonlys)) $readonlys = array(); + $total = $value['total'] = $obj->$method($value,$value['rows'],$readonlys['rows']); + // allow the get_rows function to override / set sel_options if (isset($value['rows']['sel_options']) && is_array($value['rows']['sel_options'])) {