fix BE error

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2328081 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
LolZim 2020-06-20 22:09:58 +00:00
parent a8cfa83ca3
commit 973e77debf

View file

@ -337,6 +337,8 @@ class MCI_Footnotes_Task {
// search footnotes short codes in the content // search footnotes short codes in the content
do { do {
// get first occurrence of the footnote short code [start] // get first occurrence of the footnote short code [start]
$i_int_len_Content = strlen($p_str_Content);
if ($l_int_PosStart > $i_int_len_Content) $l_int_PosStart = $i_int_len_Content;
$l_int_PosStart = strpos($p_str_Content, $l_str_StartingTag, $l_int_PosStart); $l_int_PosStart = strpos($p_str_Content, $l_str_StartingTag, $l_int_PosStart);
// no short code found, stop here // no short code found, stop here
if ($l_int_PosStart === false) { if ($l_int_PosStart === false) {