From: Johan Vervloet Date: Thu, 24 Nov 2016 10:30:39 +0000 (+0100) Subject: Please the PHP 5.old gods. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d6ef088f93e829640fd121fe7bc75f73e090493c;p=civicrm-core.git Please the PHP 5.old gods. --- diff --git a/CRM/Core/BAO/WordReplacement.php b/CRM/Core/BAO/WordReplacement.php index a76d5a583e..cef03ad579 100644 --- a/CRM/Core/BAO/WordReplacement.php +++ b/CRM/Core/BAO/WordReplacement.php @@ -226,7 +226,8 @@ WHERE domain_id = %1 $settingsResult = civicrm_api3('Setting', 'get', array( 'return' => 'lcMessages', )); - $lang = CRM_Utils_Array::first($settingsResult['values'])['lcMessages']; + $returnValues = CRM_Utils_Array::first($settingsResult['values']); + $lang = $returnValues['lcMessages']; $wordReplacementCreateParams = array(); // get all domains