Commit fb1fb484 authored by Leigh Stoller's avatar Leigh Stoller

Remember to set gid in newimages!

parent 4daaa4a7
......@@ -863,13 +863,14 @@ $query_result =
DBQueryFatal("INSERT INTO images ".
"(imagename, imageid, description, loadpart, loadlength, ".
" part1_osid, part2_osid, part3_osid, part4_osid, ".
" default_osid, path, pid, shared,global, creator, created) ".
" default_osid, path, pid, gid, shared, global, creator, ".
" created) ".
"VALUES ".
" ('$imagename', '$imageid', '$description', $loadpart, ".
" $loadlength, ".
" $part1_osid, $part2_osid, $part3_osid, $part4_osid, ".
" '$default_osid', '$path', '$pid', $shared, $global, ".
" '$uid', now())");
" '$default_osid', '$path', '$pid', '$gid', $shared, ".
" $global, '$uid', now())");
if (!$isadmin || $makedefault) {
for ($i = 0; $i < count($mtypes_array); $i++) {
......
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