Skip to content

Commit 3acfbca

Browse files
Fixed syntax error with 'and' operator.
1 parent 8978f4f commit 3acfbca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block_profile_redirect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function get_content() {
6666
// It also MUST return 1 record.
6767
$course = $DB->get_record('course', array($config->coursefield => $coursefieldvalue));
6868

69-
if (!empty($coursefieldvalue) and !empty($course)) {
69+
if (!empty($coursefieldvalue) && !empty($course)) {
7070
// Since M2 doesn't output any code we can redirect cleanly.
7171
redirect($CFG->wwwroot.'/course/view.php?id='.$course->id, '', 0);
7272
$content = ''; // Moodle complains if this isn't set.

0 commit comments

Comments
 (0)