Commit 276ababa authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review

Merge "Catch exceptions during upgrade due to missing table"

parents 0a182408 bc1fbf6c
......@@ -274,7 +274,13 @@ class Institution {
foreach (array_keys(self::$dbfields) as $fieldname) {
$this->{$fieldname} = $result->{$fieldname};
}
$this->configs = get_records_menu('institution_config', 'institution', $result->name, 'field', 'field, value');
try {
$this->configs = get_records_menu('institution_config', 'institution', $result->name, 'field', 'field, value');
}
catch (SQLException $e) {
$this->configs = false;
}
if (!$this->configs) {
$this->configs = array();
}
......
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