From 614be1770d218a22ba129208d9491f86d7b36abe Mon Sep 17 00:00:00 2001 From: Ralf Becker <ralfbecker@outdoor-training.de> Date: Tue, 9 Sep 2014 13:13:53 +0000 Subject: [PATCH] fixed category with cat_id=1 got lost in addressbook --- etemplate/inc/class.etemplate_widget_nextmatch.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php index 586c0dc14c..043841f3e2 100644 --- a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php +++ b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php @@ -188,9 +188,8 @@ class etemplate_widget_nextmatch extends etemplate_widget { $value['options-cat_id'][''] = lang('all'); } - $value['options-cat_id'] += - etemplate_widget_menupopup::typeOptions('select-cat', ',,'.$cat_app,$no_lang,false,$value['cat_id']) + - (array)$value['options-cat_id']; + $value['options-cat_id'] = array_merge($value['options-cat_id'], + etemplate_widget_menupopup::typeOptions('select-cat', ',,'.$cat_app,$no_lang,false,$value['cat_id'])); etemplate_widget_menupopup::fix_encoded_options($value['options-cat_id']); }