From ccdb259f5f5fcabab28c949ad233b3583c6bbae2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 14 Oct 2009 19:06:54 +0000 Subject: [PATCH] setting readonlys to array, if its not that type --- etemplate/inc/class.nextmatch_widget.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php index ca27d63e83..ed39252feb 100644 --- a/etemplate/inc/class.nextmatch_widget.inc.php +++ b/etemplate/inc/class.nextmatch_widget.inc.php @@ -298,6 +298,7 @@ class nextmatch_widget $value['options-selectcols'] = is_array($value['options-selectcols']) ? $value['options-selectcols'] : array(); } $rows = array(); + if (!is_array($readonlys)) $readonlys = array(); if (($total = $extension_data['total'] = $value['total'] = self::call_get_rows($value,$rows,$readonlys['rows'])) === false) { //error_log(__METHOD__."() etemplate::set_validation_error('$name') '$value[get_rows]' is no valid method!!!");