Commit d3a7a4a3 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor change to IsClass(); we have various types where class=type,

have to watch for that case. Not perfect but will do. Not sure why
we ever thought it was a good idea to allow type=class! :-)
parent ae4ab06a
......@@ -306,7 +306,8 @@ sub IsClass($$)
my (undef, $class) = @_;
my $query_result =
DBQueryWarn("select type from node_types where class='$class' limit 1");
DBQueryWarn("select type from node_types ".
"where class='$class' and class!=type limit 1");
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