joomla/joomla-cms — pull request #3763 by Kubik-Rubik (2014-06-11 21:50:27+00:00)
Title: Fix of Parse error: syntax error - Error introduced in 2.5.21

Fix of **Parse error: syntax error, unexpected T_RETURN, expecting T_FUNCTION** which was introduced in version 2.5.21

Missing bracket after the if statement
if ($copy_email_activated == true && !empty($data['contact_email_copy']))

+ code style optimizations

Reported by user y021ahe in the forum: http://forum.joomla.org/viewtopic.php?f=622&t=848531