79098811

Date: 2024-10-17 15:28:50
Score: 5
Natty:
Report link

I tried putting it in different spots in the code but I keep getting errors. The first error, when put at the end:

Warning: Undefined property: Opencart\System\Engine\Autoloader::$customer in testing2/catalog/controller/common/header.php on line 98Call to a member function isLogged() on null: in testing2/catalog/controller/common/header.php on line 98

I get the same error if I put it inside the function, and the second error if put at the top:

syntax error, unexpected token "if", expecting "function" or "const": in testing2/catalog/controller/common/header.php on line 13

Reasons:
  • RegEx Blacklisted phrase (1): I get the same error
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I get the same error
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: InfinityRogue