Commit bf18aff6 authored by olivier.br's avatar olivier.br
Browse files

Issue #3292461 by mr.york: fix php warning on preg_match_all.

parent f1dabef0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ class TermGlossaryManager {
    if (!empty($text)) {
      $new_value = $text;
      foreach ($this->termList as $term_id => $term_array) {
        $name = $term_array['name'];
        $name = preg_quote($term_array['name'], '/');
        preg_match_all("/$name+/i", $new_value, $matches);
        if (is_array($matches[0]) && count($matches[0]) >= 1) {
          foreach ($matches[0] as $match) {