Commit 7debf737 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor fix to SetExpState; Noticed in testsuite that setting the state

to its current value returns an error.
parent 6ce76216
......@@ -744,8 +744,7 @@ sub SetExpState($$$)
DBQueryWarn("update experiments set state='$state' ".
"where eid='$eid' and pid='$pid'");
if (! $query_result ||
$query_result->numrows == 0) {
if (! $query_result) {
return 0;
return 1;
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