Fixes going back during registration.
[platal.git] / modules / payment / money / paypal.inc.php
index 71de323..ab1ed47 100644 (file)
@@ -33,7 +33,7 @@ class PayPal
         $this->val_number = $val;
     }
 
-    function prepareform(&$pay)
+    function prepareform($pay)
     {
         // Documentation:
         // https://www.paypal.com/developer
@@ -66,7 +66,7 @@ class PayPal
             'email'      => $user->bestEmail()
         );
 
-        if ($user->hasProfile() {
+        if ($user->hasProfile()) {
             $res = XDB::query("SELECT  pa.text, gl.name AS city, pa.postalCode AS zip, pa.countryId AS country,
                                        IF(pp1.display_tel != '', pp1.display_tel, pp2.display_tel) AS night_phone_b
                                  FROM  profile_addresses AS pa