aboutsummaryrefslogtreecommitdiff
path: root/classes/IsisReader.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/IsisReader.php')
-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);
+ }
}
/**