From 978a1d9642a90e8350fcbf684e34602d27e2ea98 Mon Sep 17 00:00:00 2001
From: Nathan Gray <nathangray.bsc@gmail.com>
Date: Wed, 30 Sep 2009 15:04:49 +0000
Subject: [PATCH] Make sure if options-selectcols is set by caller, we don't
 clear it

---
 etemplate/inc/class.nextmatch_widget.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php
index 06cfdcb3f6..9ecc732221 100644
--- a/etemplate/inc/class.nextmatch_widget.inc.php
+++ b/etemplate/inc/class.nextmatch_widget.inc.php
@@ -321,7 +321,7 @@ class nextmatch_widget
 		if (!$value['no_columnselection'])
 		{
 			// presetting the options for selectcols empty, so the get_rows function can set it
-			$value['options-selectcols'] = array();
+			$value['options-selectcols'] = is_array($value['options-selectcols']) ? $value['options-selectcols'] : array();
 		}
 		$rows = array();
 		if(is_callable($method))	// php5.3+ call