aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-09-29 16:12:59 -0300
committerSilvio <silvio@devlet.com.br>2010-09-29 16:12:59 -0300
commitdc17ba3eacb50689199108d62979b3a49f126892 (patch)
treedac5114de293a909ea754c5092cb6ca935b2edc4 /classes
parentd08ea84c85b03cf893266e10ea14e6e8a55ca264 (diff)
downloadcinisis-dc17ba3eacb50689199108d62979b3a49f126892.tar.gz
cinisis-dc17ba3eacb50689199108d62979b3a49f126892.tar.bz2
Method explodeBrackets checking first if hasBrackets
Diffstat (limited to 'classes')
-rw-r--r--classes/IsisReader.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/classes/IsisReader.php b/classes/IsisReader.php
index 9926d3b..deca387 100644
--- a/classes/IsisReader.php
+++ b/classes/IsisReader.php
@@ -96,8 +96,13 @@ class IsisReader {
* Array of matched strings.
*/
public function explodeBrackets($subject) {
- preg_match_all('/<[^<>]*>/', $subject, $values);
- return $this->filterBrackets($values[0]);
+ if ($this->hasBrackets($subject)) {
+ preg_match_all('/<[^<>]*>/', $subject, $values);
+ return $this->filterBrackets($values[0]);
+ }
+ else {
+ return array($subject);
+ }
}
/**