Skip to content

Commit bef85e3

Browse files
committed
[PHP] Don't break from foreach in IsterSimpleXMLElement.php
I think what we want to do here is jump into the next iteration of the foreach loop.
1 parent 63d8474 commit bef85e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phplib/simplexml44-0_4_4/class/IsterSimpleXMLElement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ function CDATA()
155155
switch( $child->___t ) {
156156
case ISTER_XML_CDATA:
157157
if( preg_match('/^(<!\[CDATA\[|]]>)$/', $child->___n) )
158-
continue;
158+
continue 2;
159159
$txt .= $child->___n;
160160
break;
161161
case ISTER_XML_ENTITY:
162162
$txt .= $child->___ns;
163163
break;
164164
default:
165-
continue;
165+
continue 2;
166166
}
167167
}
168168
return $txt;

0 commit comments

Comments
 (0)