Commit 1570737f authored by Leigh B. Stoller's avatar Leigh B. Stoller

Small fix for dealing with a brand new emulab (no existing experiments).

parent 8943e0e1
......@@ -305,6 +305,9 @@ if (! $query_result->num_rows) {
($exptidx) = $query_result->fetchrow_array();
$exptidx = 1
if (!defined($exptidx));
DBQueryFatal("insert into emulab_indicies (name, idx) ".
"values ('next_exptidx', $exptidx)");
}
......
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