--- loncom/lonsql 2001/03/27 19:57:53 1.26 +++ loncom/lonsql 2001/04/02 14:42:26 1.28 @@ -251,7 +251,7 @@ sub make_new_child { } } # do custom metadata searching here and build into result - if ($custom) { + if ($custom or $customshow) { &logthis("am going to do custom query for $custom"); if ($query) { @metalist=map {$perlvar{'lonDocRoot'}.$_.'.meta'} @files; @@ -284,7 +284,7 @@ sub make_new_child { $m2=~s/\.meta$//; unless ($query) { my $q2="select * from metadata where url like '$m2'"; - my $sth = $dbh->prepare($query); + my $sth = $dbh->prepare($q2); $sth->execute(); my $r1=$sth->fetchall_arrayref; map {my $a=$_;