?

User tests: Successful: Unsuccessful:

avatar Kubik-Rubik
Kubik-Rubik
11 Jun 2014

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

avatar Kubik-Rubik Kubik-Rubik - open - 11 Jun 2014
avatar Bakual
Bakual - comment - 12 Jun 2014

The diff for this PR looks strange. Can you do it so it only changes the actual error?
Looks a bit like you worked from staging instead from the 2.5 branch.

avatar Kubik-Rubik
Kubik-Rubik - comment - 12 Jun 2014

@Bakual Thank you for your time to look into it. This PR is correct and I also used the 2.5.x branch to add it. Please check the raw output and you will see that everything is correct:
https://github.com/Kubik-Rubik/joomla-cms/blob/2.5.x-Fix-Parse-Error-com_contact/components/com_contact/controllers/contact.php

For me this error is very critical because the contact form produces the parse error in all Joomla! installations with the version 2.5.21. We should release the version 2.5.22 with this fix as soon as possible.

avatar Bakual Bakual - reference | - 12 Jun 14
avatar Bakual Bakual - close - 12 Jun 2014
avatar Bakual
Bakual - comment - 12 Jun 2014

It's indeed codestyle changes (line indentions) which cause the diff to look strange. When checking with SmartGit it's obvious

Merged, thanks!

avatar Bakual Bakual - change - 12 Jun 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-06-12 08:07:42
avatar Bakual Bakual - close - 12 Jun 2014
avatar Kubik-Rubik Kubik-Rubik - head_ref_deleted - 20 Jun 2015

Add a Comment

Login with GitHub to post a comment