When I was building the demo website for the clients using maestro workflow in drupal 7, I have encouted with the following errors:
Only variables should be passed by reference in maestro_accept_reject()
By looking at their code of the maestro_common.module snippet at blow, there seems no problem with the code itself. However, the release of PHP 4.4 and 5.0.5, a change has been made to the engine that has resulted in some new errors popping up in existing code. The errors showing above didnot hurt the basic functionality but creating annoying user experience.
After researching around for fixing the problem while and understanding php developers’ determinative attitude on pushing the new change in, I have figured out a way to reformat the code above to get the php engine happy.
So now the error goes away by having the code reformatted as below:
Hope this would help people that has suffered the same problem!