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

Fix up node_type_attributes query.

parent f14dfb41
......@@ -52,7 +52,8 @@ $query_result2 =
DBQueryFatal("select * from scheduled_reloads where image_id='$imageid'");
$query_result3 =
DBQueryFatal("select * from node_type_attributes ".
"where default_imageid='$imageid' limit 1");
"where attrkey='default_imageid' and ".
" attrvalue='$imageid' limit 1");
if (mysql_num_rows($query_result1)) {
echo "$imageid is referenced in the current_reloads table!<br>";
......
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