diff --git a/LICENSE.md b/LICENSE.md old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/amd/build/search.min.js b/amd/build/search.min.js old mode 100644 new mode 100755 diff --git a/amd/src/search.js b/amd/src/search.js old mode 100644 new mode 100755 diff --git a/classes/output/renderer.php b/classes/output/renderer.php old mode 100644 new mode 100755 diff --git a/classes/output/searchform.php b/classes/output/searchform.php old mode 100644 new mode 100755 diff --git a/classes/output/timetable.php b/classes/output/timetable.php old mode 100644 new mode 100755 diff --git a/classes/timetable.php b/classes/timetable.php index f14a447..6df582e 100755 --- a/classes/timetable.php +++ b/classes/timetable.php @@ -126,7 +126,7 @@ class timetable { $day = new \DateTime($this->monday->format('Y-m-d\TH:i:sP')); for ($i=0; $i<$this->numdayweek; $i++) { - $sql = "date = '".$day->format('Ymd')."' AND ({$this->type}a LIKE '%{$this->name}%' OR {$this->type}b LIKE '%{$this->name}%')"; + $sql = "date = '".$day->format('Ymd')."' AND ({$this->type}a RLIKE '(^|~){$this->name}($|~)' OR {$this->type}b RLIKE '(^|~){$this->name}($|~)')"; if ($result = $DB->get_records_select('timetable_substitution',$sql)) { foreach ($result as $substitution) { $this->data[$i+1][$substitution->period]['substitution'][] = $substitution; diff --git a/db/access.php b/db/access.php old mode 100644 new mode 100755 diff --git a/db/install.php b/db/install.php old mode 100644 new mode 100755 diff --git a/db/install.xml b/db/install.xml old mode 100644 new mode 100755 diff --git a/db/services.php b/db/services.php old mode 100644 new mode 100755 diff --git a/db/uninstall.php b/db/uninstall.php old mode 100644 new mode 100755 diff --git a/db/upgrade.php b/db/upgrade.php old mode 100644 new mode 100755 diff --git a/externallib.php b/externallib.php old mode 100644 new mode 100755 diff --git a/index.php b/index.php old mode 100644 new mode 100755 diff --git a/lang/en/timetable.php b/lang/en/timetable.php old mode 100644 new mode 100755 diff --git a/lib.php b/lib.php old mode 100644 new mode 100755 diff --git a/mod_form.php b/mod_form.php old mode 100644 new mode 100755 diff --git a/pix/icon.png b/pix/icon.png old mode 100644 new mode 100755 diff --git a/pix/icon.svg b/pix/icon.svg old mode 100644 new mode 100755 diff --git a/settings.php b/settings.php old mode 100644 new mode 100755 diff --git a/styles.css b/styles.css old mode 100644 new mode 100755 diff --git a/templates/searchform.mustache b/templates/searchform.mustache old mode 100644 new mode 100755 diff --git a/templates/searchresult.mustache b/templates/searchresult.mustache old mode 100644 new mode 100755 diff --git a/templates/timetable.mustache b/templates/timetable.mustache old mode 100644 new mode 100755 diff --git a/version.php b/version.php old mode 100644 new mode 100755 diff --git a/view.php b/view.php old mode 100644 new mode 100755