Fixes for PHP 5.4+

This commit is contained in:
2016-04-28 18:06:27 +10:00
parent b10da453e5
commit c1b2621d3b
5 changed files with 12 additions and 10 deletions

View File

@@ -1269,7 +1269,8 @@ function _booking_process_refund($person)
* Helper function to generate paypal form for payments
*/
function _booking_paypal_form($person, $invoiceid, $amount_owing, $button_text) {
return drupal_render(drupal_get_form('_booking_paypal_form_builder', $person, $invoiceid, $amount_owing, $button_text));
$form = drupal_get_form('_booking_paypal_form_builder', $person, $invoiceid, $amount_owing, $button_text);
return drupal_render($form);
}
/**