Commit 54d9fdf2 authored by Leigh Stoller's avatar Leigh Stoller

Minor sql syntax fix.

parent deab3084
......@@ -3417,7 +3417,8 @@ sub TBNodeSubNodes($)
my $result = DBQueryFatal("SELECT n.node_id FROM nodes AS n " .
"LEFT JOIN node_types " .
" AS nt ON n.type = nt.type " .
"WHERE n.phys_nodeid='$node' and nt.issubnode");
"WHERE n.phys_nodeid='$node' and ".
" nt.issubnode!=0");
if (! $result or $result->numrows == 0) {
return ();
......
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