JoelWebsites Posted July 3, 2017 Share Posted July 3, 2017 I get the error Inline control structures are not allowed in the prestashop validator Please help me solve this issue?. it is showing for all the if conditions and foreach loops. Link to comment Share on other sites More sharing options...
razaro Posted July 3, 2017 Share Posted July 3, 2017 Hi Joel it means you need to add curly braces { } so if you have if (!empty($fields)) foreach ($fields as $key => $row) $value = $row['value'] you need to make it like this if (!empty($fields)) { foreach ($fields as $key => $row) { $value = $row['value'] } } 1 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