Commit 21a1e07a authored by Leigh B. Stoller's avatar Leigh B. Stoller

Another join improvement.

parent 563c229b
......@@ -1389,8 +1389,8 @@ sub DefaultImageID ($) {
my($nodeid) = @_;
my $query_result =
DBQueryFatal("select imageid from node_types as t ".
"left join nodes as n on t.type=n.type ".
DBQueryFatal("select imageid from nodes as n ".
"left join node_types as t on t.type=n.type ".
"where n.node_id='$nodeid'");
if (! $query_result->num_rows) {
......
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