From 532ee86f9c64f21a799205cb9cebf3d71037296b Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 3 Jun 2014 23:51:34 +1200 Subject: [PATCH] minor tidy-ups, declare type for field, don't set unused var --- CRM/Contribute/Form/ContributionBase.php | 2 +- CRM/Utils/System.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/Form/ContributionBase.php b/CRM/Contribute/Form/ContributionBase.php index d466ac9b44..2cbd0c1575 100644 --- a/CRM/Contribute/Form/ContributionBase.php +++ b/CRM/Contribute/Form/ContributionBase.php @@ -110,7 +110,7 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form { * @var array * @public */ - public $_fields; + public $_fields = array(); /** * The billing location id for this contribiution page diff --git a/CRM/Utils/System.php b/CRM/Utils/System.php index aa4a70617f..9b4b135b0c 100644 --- a/CRM/Utils/System.php +++ b/CRM/Utils/System.php @@ -1392,7 +1392,7 @@ class CRM_Utils_System { * Response from URL. */ static function getServerResponse($url, $addCookie = TRUE) { - $errorScope = CRM_Core_TemporaryErrorScope::ignoreException(); + CRM_Core_TemporaryErrorScope::ignoreException(); require_once 'HTTP/Request.php'; $request = new HTTP_Request($url); -- 2.25.1