From 23a25e23d8c2105280ea282880752f3a86a3373e Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 4 Mar 2016 15:57:13 +0000 Subject: [PATCH] remove PHP 5.4+ array syntax breaking our PHP 5.3 support --- .../inc/class.calendar_owner_etemplate_widget.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/calendar/inc/class.calendar_owner_etemplate_widget.inc.php b/calendar/inc/class.calendar_owner_etemplate_widget.inc.php index 784989a40b..693e473de4 100644 --- a/calendar/inc/class.calendar_owner_etemplate_widget.inc.php +++ b/calendar/inc/class.calendar_owner_etemplate_widget.inc.php @@ -124,8 +124,8 @@ class calendar_owner_etemplate_widget extends etemplate_widget_taglist $query = $_REQUEST['query']; // Arbitrarily limited to 50 / resource - $options = ['start' => 0, 'num_rows' => 50]; - $results = []; + $options = array('start' => 0, 'num_rows' => 50); + $results = array(); $resources = array_merge(array('' => $bo->resources['']),$bo->resources); foreach($resources as $type => $data) @@ -156,12 +156,12 @@ class calendar_owner_etemplate_widget extends etemplate_widget_taglist if($id && $title) { // Magicsuggest uses id, not value. - $value = [ + $value = array( 'id' => $type.$id, 'value'=> $type.$id, 'label' => $title, 'app' => lang($data['app']) - ]; + ); if(is_array($value['label'])) { $value = array_merge($value, $value['label']);