Jump to content

Inline control structures are not allowed in the prestashop validator


JoelWebsites

Recommended Posts

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']
    }
}
  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...