Skip to content
Browse files

MDL-43852 Filters Fixed naked-OR conditions.

  • Loading branch information...
1 parent 53490ad commit 96315c3478e95d79c71f0ad873f0fb1741ad4e41 Gordon Bateson committed with scara Jan 27, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 course/format/renderer.php
  2. +1 −1 filter/mediaplugin/filter.php
View
2 course/format/renderer.php
@@ -583,7 +583,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);
}
View
2 filter/mediaplugin/filter.php
@@ -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 96315c3

Please sign in to comment.
Something went wrong with that request. Please try again.