PriceSet BAO - fix spelling & remove unused var
authorEileen McNaughton <eileen@fuzion.co.nz>
Tue, 3 Jun 2014 21:35:49 +0000 (09:35 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 3 Jun 2014 22:35:17 +0000 (10:35 +1200)
CRM/Price/BAO/PriceSet.php

index c22510487aca5be1be4c17de50f5fda0d5de2f41..038962a740470648ec4e104e8351272633f6202a 100644 (file)
@@ -713,7 +713,7 @@ WHERE  id = %1";
           if (
             $component &&
             // auto_renew exists and is empty in some workflows, which php treat as a 0
-            // and hence we explicity check to see if auto_renew is numeric
+            // and hence we explicitly check to see if auto_renew is numeric
             isset($lineItem[$optionValueId]['auto_renew']) &&
             is_numeric($lineItem[$optionValueId]['auto_renew'])
           ) {
@@ -1270,7 +1270,7 @@ WHERE       ps.id = %1
 
           $copyPriceSet = &CRM_Price_BAO_PriceSet::copy($setId);
 
-          $copyDiscount = &CRM_Core_DAO::copyGeneric(
+          CRM_Core_DAO::copyGeneric(
             'CRM_Core_DAO_Discount',
             array(
               'id' => $discountId,