Commit d099d4ba authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix noisy warnings in logs when listing submitted views


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 1a287da3
......@@ -2295,7 +2295,7 @@ class View {
*/
public static function get_submitted_views($groupid) {
$viewdata = get_records_sql_assoc('
SELECT id, title, description, owner, ownerformat
SELECT id, title, description, owner, ownerformat, "group", institution
FROM {view}
WHERE submittedgroup = ?
ORDER BY title, id',
......@@ -2321,7 +2321,7 @@ class View {
$owners[$v->owner] = $v->owner;
} else if ($v->group && !isset($groups[$v->group])) {
$groups[$v->group] = $v->group;
} else if ($v->institution && !isset($institutions[$v->institution])) {
} else if (strlen($v->institution) && !isset($institutions[$v->institution])) {
$institutions[$v->institution] = $v->institution;
}
}
......
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