Permalink
Browse files

MDL-43852 Filters Fixed naked-OR conditions.

  • Loading branch information...
1 parent ed0a48b commit edf55404ff0178d11cab1e13cc09e286da49eea2 Gordon Bateson committed with Matteo Scaramuccia Jan 27, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 course/format/renderer.php
  2. +1 −1 filter/mediaplugin/filter.php
@@ -585,7 +585,7 @@ protected function section_nav_selection($course, $sections, $displaysection) {
$section = 1;
while ($section <= $course->numsections) {
$thissection = $modinfo->get_section_info($section);
- $showsection = $thissection->uservisible or !$course->hiddensections;
+ $showsection = ($thissection->uservisible or !$course->hiddensections);
if (($showsection) && ($section != $displaysection) && ($url = course_get_url($course, $section))) {
$sectionmenu[$url->out(false)] = get_section_name($course, $section);
}
@@ -66,7 +66,7 @@ public function filter($text, array $options = array()) {
}
// Check SWF permissions.
- $this->trusted = !empty($options['noclean']) or !empty($CFG->allowobjectembed);
+ $this->trusted = (!empty($options['noclean']) or !empty($CFG->allowobjectembed));
// Handle all links that contain any 'embeddable' marker text (it could
// do all links, but the embeddable markers thing should make it faster

0 comments on commit edf5540

Please sign in to comment.