Fix too many logs

This commit is contained in:
Laurent Destailleur 2021-01-26 16:10:27 +01:00
parent b3d2d50a0c
commit 8bc639fe02

View File

@ -136,9 +136,8 @@ class Odf
// instead of {aaa} so we should enhance this function.
//print $key.'-'.$value.'-'.strpos($this->contentXml, $this->config['DELIMITER_LEFT'] . $key . $this->config['DELIMITER_RIGHT']).'<br>';
if (strpos($this->contentXml, $tag) === false && strpos($this->stylesXml, $tag) === false) {
//if (strpos($this->contentXml, '">'. $key . '</text;span>') === false) {
throw new OdfException("var $key not found in the document");
//}
// Add the throw only for development. In most cases, it is normal to not having the key into the document (only few keys are presents).
//throw new OdfException("var $key not found in the document");
}
$this->vars[$tag] = $this->convertVarToOdf($value, $encode, $charset);