From 37d40efddb16cdc5c3019f20d67484d8eca50d8a Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Wed, 3 Sep 2014 11:27:56 -0500 Subject: [PATCH] oops: Fix PHP 5.3 syntax error for array literal --- include/class.dynamic_forms.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php index e4b030db4..8b9f96182 100644 --- a/include/class.dynamic_forms.php +++ b/include/class.dynamic_forms.php @@ -951,9 +951,9 @@ class DynamicFormEntryAnswer extends VerySimpleModel { if (is_array($val)) return array_keys($val); elseif (is_object($val) && method_exists($val, 'getId')) - return [$val->getId()]; + return array($val->getId()); - return [$val]; + return($val); } function asVar() { -- GitLab