Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-39785 bug fix: filter_activitynames was not applied correctly

  • Loading branch information...
commit 87a445ec7090af4c65f14159d98cd096f768415d 1 parent 121e249
@marinaglancy marinaglancy authored danpoltawski committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 filter/activitynames/filter.php
View
4 filter/activitynames/filter.php
@@ -85,9 +85,9 @@ function filter($text, array $options = array()) {
$cmid = $this->context->instanceid;
if ($this->context->contextlevel == CONTEXT_MODULE && isset(self::$activitylist[$cmid])) {
// remove filterobjects for the current module
- $filterslist = array_diff_key(self::$activitylist, array($cmid => 1, $cmid.'-e' => 1));
+ $filterslist = array_values(array_diff_key(self::$activitylist, array($cmid => 1, $cmid.'-e' => 1)));
} else {
- $filterslist = self::$activitylist;
+ $filterslist = array_values(self::$activitylist);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.