Incentive Scripts Community
Upgrade Page - Printable Version

+- Incentive Scripts Community (http://www.incentivescripts.com/forum)
+-- Forum: General (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=3)
+--- Thread: Upgrade Page (/showthread.php?tid=2000)



Upgrade Page - EarnBy - 01-30-2016 10:33 PM

I've been getting the following Syntax error:

Parse error: syntax error, unexpected '[' in /home/_____/public_html/view/theme/default/tpl/account/upgrade.php on line 263

Line in question is:
PHP Code:
foreach($memberships as $membership)
    {
        echo 
'<td><a href="#" title="'.$membership['successive_payout_minimum'].'">'.asset(Vars::$conf->payments->default_asset,explode('-',$membership['successive_payout_minimum'])[0]).'</a></td>';
    } 

Should be something relatively simple. Unfortunately, I do not know PHP syntax (only know Python).