Function Order_Document::has_header_logo() not working
-
When I have no image/logo set for my document, the function
Order_Document::has_header_logo()($this->has_header_logo()) in the invoice template gives a wrong result back.When I was debugging a saw that the value of
Order_Document::settings['header_logo']wasArray ( [default] => ).So when the function
Order_Document::has_header_logo()is called it will check is the variable is not empty, but there is an array with an empty value stored in the variable.
At the moment, I use a workaround by checking the settings direly in my invoice template ($this->setting[‘header_logo’]).
The topic ‘Function Order_Document::has_header_logo() not working’ is closed to new replies.