Error:
Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /home/xcomkids/public_html/sites/all/modules/contributions/simplenews_analytics/simplenews_analytics.module on line 106
When using previous version of PHP.
You can't use then reference in foreach in PHP 4.x
There can be module installation restriction for 5.x or it can be converted to be compatible.
foreach ($text as &$element) {
_simplenews_analytics_parse_body($element);
}
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | simplenews_analytics.359751.patch | 748 bytes | sutharsan |
Comments
Comment #1
kenorb commentedI'll test this code:
Error dissappeared, but but I don't know how to test the functionality of this code:)
Comment #2
sutharsan commentedBetter use this:
Patch attached.
Comment #3
sutharsan commentedCommitted.
Comment #4
kenorb commentedThanks.