Commit f9fbab88 authored by Mike Hibler's avatar Mike Hibler

If default_imageid is a comma-separated list of IDs, print list of names.

parent 92bd0358
<?php
#
# Copyright (c) 2000-2010 University of Utah and the Flux Group.
# Copyright (c) 2000-2013 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -122,9 +122,13 @@ if (mysql_num_rows($query_result)) {
}
}
elseif ($key == "default_imageid") {
if ($image = Image::Lookup($val)) {
$val = $image->imagename();
$inames = array();
foreach (explode(',', $val) as $imageid) {
if ($image = Image::Lookup($imageid)) {
$inames[] = $image->imagename();
}
}
$val = implode(',', $inames);
}
echo "<tr>\n";
echo "<td>$key:</td>\n";
......
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