clampdown Posted April 6, 2016 Share Posted April 6, 2016 Hello,I'm currently the following issue on the frontend Parse error: syntax error, unexpected 'if' (T_IF) in /var/www/vhosts/domain.co.uk/httpdocs/classes/Tools.php on line 278 Line 278 is: return in_array(Tools::strtolower($_SERVER['REDIRECT_HTTPS']), array(1, 'on')); Any help would be great Link to comment Share on other sites More sharing options...
clampdown Posted April 6, 2016 Author Share Posted April 6, 2016 (edited) I think i've sorted this, I deleted the https (our server only has http) and redirected it to http using the following code: return (!is_null($use_ssl) && $use_ssl ? 'https://' : 'http://'); Edited April 6, 2016 by clampdown (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now