projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f864a56
)
warning
author
Alan
<alan@roojs.com>
Tue, 21 Nov 2023 06:36:54 +0000
(14:36 +0800)
committer
Alan
<alan@roojs.com>
Tue, 21 Nov 2023 06:36:54 +0000
(14:36 +0800)
Document/Word/Writer/Section/Footer/PreserveText.php
patch
|
blob
|
history
diff --git
a/Document/Word/Writer/Section/Footer/PreserveText.php
b/Document/Word/Writer/Section/Footer/PreserveText.php
index
75468fc
..
3e2f5ea
100644
(file)
--- a/
Document/Word/Writer/Section/Footer/PreserveText.php
+++ b/
Document/Word/Writer/Section/Footer/PreserveText.php
@@
-97,7
+97,7
@@
class Document_Word_Writer_Section_Footer_PreserveText
}
\r
\r
$pattern = '/({.*?})/';
\r
- $this->_text = preg_split($pattern, $text, null, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
\r
+ $this->_text = preg_split($pattern,
empty($text) ? '' :
$text, null, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
\r
return $this;
\r
}
\r
\r