Commit f84bf953 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files
parents e73dce18 4b4766b6
......@@ -39,7 +39,13 @@ function check_upgrades($name = null) {
require('version.php');
// check core first...
if (empty($name) || $name == 'core') {
if (!$coreversion = get_config('version')) {
try {
$coreversion = get_config('version');
}
catch (Exception $e) {
$coreversion = 0;
}
if (empty($coreversion)) {
$core = new StdClass;
$core->install = true;
$core->to = $config->version;
......
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