diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php index ba2671083e..dc97f538b9 100644 --- a/etemplate/inc/class.nextmatch_widget.inc.php +++ b/etemplate/inc/class.nextmatch_widget.inc.php @@ -956,3 +956,17 @@ return $fields; } } + +if (!function_exists('array_combine')) // php5+ +{ + function array_combine($keys,$values) + { + $combined = array(); + $values = array_values($values); + foreach(array_values($keys) as $n => $key) + { + $combined[$key] = $values[$n]; + } + return $combined; + } +}