Commit 79987c35 authored by Leigh B Stoller's avatar Leigh B Stoller

Fix search query, was losing info.

parent b85ccab5
......@@ -228,8 +228,8 @@ sub SearchHistory()
DBQueryFatal("select pid,name from apt_instance_history ".
"where uuid='$uuid'");
next
if (!$query_result->numrows);
my ($pid,$name) = $query_result->fetchrow_array();
if (!$history_result->numrows);
my ($pid,$name) = $history_result->fetchrow_array();
my $aggregate = APT_Aggregate->Lookup($aggregate_urn);
if (!defined($aggregate)) {
......
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