Commit 3ce76dbe authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Gerrit Code Review
Browse files

Merge "Bug 1811912: "Table 'tag' not exists" when upgrade from 18.04 to master"

parents a967e6a7 37ba5fd6
......@@ -3979,6 +3979,10 @@ function tag_weight($freq) {
function get_my_tags($limit=null, $cloud=true, $sort='freq', $excludeinstitutiontags=false) {
global $USER;
if (get_config('version') < 2018061801) {
// we are in upgrade before the table exists
return false;
}
$id = $USER->get('id');
if ($limit || $sort != 'alpha') {
$sort = 'COUNT(1) DESC'; // In this instance '1' is not a number but the column reference to 'tag' column
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment