Commit e8e6ef96 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix first time initialization bug.

parent 4997a4a6
......@@ -102,7 +102,7 @@ if (!defined($version)) {
emdbi::DBQueryN($dbnumber,
"select value from version_info ".
"where name='dbrev'");
if (!$query_result) {
if (!$query_result || !$query_result->numrows) {
if ($dbname eq $DEFDBNAME) {
$version = "4.0";
}
......@@ -110,9 +110,6 @@ if (!defined($version)) {
$version = "0";
}
}
elsif (!$query_result->numrows) {
Fatal("No version info in the DB");
}
else {
($version) = $query_result->fetchrow_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