0

I have this error appear after to defined the constant

how to resolve ?

Warning: Use of undefined constant MODULE_HEADER_BREADCRUMP_STATUS - assumed 'MODULE_HEADER_BREADCRUMP_STATUS' (this will throw an Error in a future version of PHP) in /var/www/clients/client1/web13/web/boutique/sources/template/Default/files/breadcrumb.php on line 22

my line

  if (defined(MODULE_HEADER_BREADCRUMP_STATUS)) {
    if (MODULE_HEADER_BREADCRUMP_STATUS != 'True' || empty(MODULE_HEADER_BREADCRUMP_TITLE) ) {...
    }
  }
1

1 Answer 1

3

When checking to see if a constant is defined, add quotes around it:

if(defined("MODULE_HEADER_BREADCRUMP_STATUS"))
Sign up to request clarification or add additional context in comments.

1 Comment

Man … the quotes totally got me :D +1

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.