Skip to content

Commit

Permalink
Language: Fix return type of updateAllCourseLanguages() function - re…
Browse files Browse the repository at this point in the history
…fs 4418
  • Loading branch information
BorjaSanchezBeezNest committed Nov 28, 2022
1 parent 03a7bf9 commit dc13546
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/inc/lib/course.lib.php
Expand Up @@ -5083,8 +5083,8 @@ public static function updateAllCourseLanguages(string $from, string $to): bool
if (!empty($to) && !empty($from)) {
$sql = "UPDATE $tableCourse SET course_language = '$to'
WHERE course_language = '$from'";

return Database::query($sql);
Database::query($sql);
return true;
}

return false;
Expand Down

0 comments on commit dc13546

Please sign in to comment.