Commit 171ffb5c authored by Mike Hibler's avatar Mike Hibler

When getting the node types that an image can run on, change the

"select" to a "select distinct" on osidtoimageid since there will be
multiple osid entries for combo images.
parent 05c186b4
......@@ -33,7 +33,7 @@ class Image
$types = array();
$query_result =
DBQueryFatal("select type from osidtoimageid ".
DBQueryFatal("select distinct type from osidtoimageid ".
"where imageid='$safe_id'");
while ($row = mysql_fetch_array($query_result)) {
......@@ -97,7 +97,7 @@ class Image
$types = array();
$query_result =
DBQueryFatal("select type from osidtoimageid ".
DBQueryFatal("select distinct type from osidtoimageid ".
"where imageid='$imageid'");
while ($row = mysql_fetch_array($query_result)) {
......
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