minor tidy-ups, declare type for field, don't set unused var
authorEileen McNaughton <eileen@fuzion.co.nz>
Tue, 3 Jun 2014 11:51:34 +0000 (23:51 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 3 Jun 2014 11:51:34 +0000 (23:51 +1200)
CRM/Contribute/Form/ContributionBase.php
CRM/Utils/System.php

index d466ac9b444e8f23064dab505ad3724c905f43db..2cbd0c1575b963e257818f5a0865af993ac620b5 100644 (file)
@@ -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
index aa4a70617f61f74ecbad25ea9c00ed3a24b21fbc..9b4b135b0c17ffe8ef482cd758ab20652c65acd9 100644 (file)
@@ -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);