Forum


Replies: 3   Views: 3412
Replacetemplatevariablebyhtml() bug
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by jens.grasnick  · 20-04-2014 - 18:39

Hi,



just want to inform you that if you pass a empty or null value as $html parameter to replaceTemplateVariableByHTML() method, you'll get a fatal error. It would be fine if the library detect such values for its own and redirect to addTemplateVariable($var, '').