diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/filter.module | 2 | ||||
-rw-r--r-- | modules/filter/filter.module | 2 | ||||
-rw-r--r-- | modules/search.module | 2 | ||||
-rw-r--r-- | modules/search/search.module | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/modules/filter.module b/modules/filter.module index 61743dc71..75ecff13d 100644 --- a/modules/filter.module +++ b/modules/filter.module @@ -1004,7 +1004,7 @@ function _filter_autop($text) { foreach ($chunks as $i => $chunk) { if ($i % 2) { // Opening or closing tag? - $open = ($chunk{1} != '/'); + $open = ($chunk[1] != '/'); list($tag) = split('[ >]', substr($chunk, 2 - $open), 2); if (!$ignore) { if ($open) { diff --git a/modules/filter/filter.module b/modules/filter/filter.module index 61743dc71..75ecff13d 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -1004,7 +1004,7 @@ function _filter_autop($text) { foreach ($chunks as $i => $chunk) { if ($i % 2) { // Opening or closing tag? - $open = ($chunk{1} != '/'); + $open = ($chunk[1] != '/'); list($tag) = split('[ >]', substr($chunk, 2 - $open), 2); if (!$ignore) { if ($open) { diff --git a/modules/search.module b/modules/search.module index 1401e2420..e8294107d 100644 --- a/modules/search.module +++ b/modules/search.module @@ -482,7 +482,7 @@ function search_index($sid, $type, $text) { list($tagname) = explode(' ', $value, 2); $tagname = drupal_strtolower($tagname); // Closing or opening tag? - if ($tagname{0} == '/') { + if ($tagname[0] == '/') { $tagname = substr($tagname, 1); // If we encounter unexpected tags, reset score to avoid incorrect boosting. if (!count($tagstack) || $tagstack[0] != $tagname) { diff --git a/modules/search/search.module b/modules/search/search.module index 1401e2420..e8294107d 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -482,7 +482,7 @@ function search_index($sid, $type, $text) { list($tagname) = explode(' ', $value, 2); $tagname = drupal_strtolower($tagname); // Closing or opening tag? - if ($tagname{0} == '/') { + if ($tagname[0] == '/') { $tagname = substr($tagname, 1); // If we encounter unexpected tags, reset score to avoid incorrect boosting. if (!count($tagstack) || $tagstack[0] != $tagname) { |