Star2Billing / a2billing

A2Billing is a telecom switch and billing system capable of providing and billing a range of telecom products and services to customers such as calling card products, residential and wholesale VoIP termination, DID resale and callback services.
www.asterisk2billing.org
Other
180 stars 174 forks source link

Error upgrading to version 2.1 on file common/lib/agent.smarty.php on line 82 #112

Closed ccguerrero closed 9 years ago

ccguerrero commented 9 years ago

When upgrading to version 2.1 i got this error

[error] [client 187.191.10.16] PHP Parse error: syntax error, unexpected '[', expecting ')' in /usr/src/a2billing/common/lib/agent.smarty.php on line 82

and on file common/lib/agent.smarty.php on line 82 i found this

getpost_ifset(['section']);

and I'm pretty sure it should be

getpost_ifset('section');

Regards,

areski commented 9 years ago

getpost_ifset is a function that expect an array: """" function getpost_ifset($test_vars) { if (!is_array($test_vars)) { $test_vars = array ( $test_vars ); } """"