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

Change TBSiteVarExists() to use DBQueryWarn() instead of fatal.

parent 03403a55
......@@ -2689,17 +2689,15 @@ sub TBSiteVarExists($)
{
my($name) = @_;
$name = DBQuoteSpecial( $name );
$name = DBQuoteSpecial( $name );
my $query_result =
DBQueryFatal("select name from sitevariables ".
"where name=$name");
DBQueryWarn("select name from sitevariables where name=$name");
if ($query_result->numrows > 0) {
return 1;
} else {
return 0;
}
return 0
if (!$query_result);
return $query_result->numrows;
}
#
......
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