From 512cceb42be8e5f42bc2bd0a9e4c17b5a1ae077c Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Wed, 20 Nov 2013 19:03:10 +0530 Subject: [PATCH] =?utf8?q?hr-200=20:=20failure=20for=20hr-200=20unit=20tes?= =?utf8?q?t=20was=20encountered=20due=20to=20'Only=20variables=20should=20?= =?utf8?q?be=20passed=20by=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit …reference' on E_STRICT php error reporting --- api/v3/CustomValue.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/v3/CustomValue.php b/api/v3/CustomValue.php index dde56fd8a7..93bec607c0 100644 --- a/api/v3/CustomValue.php +++ b/api/v3/CustomValue.php @@ -194,7 +194,8 @@ function civicrm_api3_custom_value_get($params) { continue; } $fieldNumber = $idArray[1]; - $info = array_pop(CRM_Core_BAO_CustomField::getNameFromID($fieldNumber)); + $customFieldInfo = CRM_Core_BAO_CustomField::getNameFromID($fieldNumber); + $info = array_pop($customFieldInfo); // id is the index for returned results if (empty($idArray[2])) { -- 2.25.1