From: Eileen McNaughton Date: Tue, 3 Jun 2014 11:51:34 +0000 (+1200) Subject: minor tidy-ups, declare type for field, don't set unused var X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=532ee86f9c64f21a799205cb9cebf3d71037296b;p=civicrm-core.git minor tidy-ups, declare type for field, don't set unused var --- 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);