Contact Form Fatal Error

There is a fatal error when sending the contact form.

Errors reported

 Parse error: syntax error, unexpected 'return' (T_RETURN), expecting function (T_FUNCTION) in /.../components/com_contact/controllers/contact.php on line 172

Versions affected

Info non-talk.png
General Information

This pertains only to Joomla! version(s):- 2.5.21

What is the cause

A bug introduced.

How to fix

Update to the latest maintenance version, which is currently 2.5.28 for the 2.5 series.