At the tail end of checkout, I'm seeing this error message:
Strict warning: Only variables should be passed by reference in commerce_webform_tokens() (line 53 of .../commerce_webform/commerce_webform.tokens.inc).
If you look at the code concerned:
foreach ($submissions as $id => $submission) {
$node = $submission['node'];
$sub = $submission['submission'];
$details .= drupal_render(webform_submission_render($node, $sub, NULL, 'html')) . "\r\n";
}
drupal_render() needs a variable to reference - see http://www.php.net/manual/en/language.references.pass.php
Patch to follow...
Comments
Comment #1
robcarrPatch attached. Simple solution stops the 'strict' errors
Comment #2
johnennew commentedThanks for this patch!
Comment #4
johnennew commentedCommitted with thanks!
Comment #5
johnennew commented