php3 did not like entry[cat_id][] in the form, so this is now fcat_id[]

This commit is contained in:
Miles Lott 2001-07-10 20:20:45 +00:00
parent ea3e4e4d30
commit 07f5bb292c

View File

@ -177,7 +177,7 @@
$jselect = ' onChange="this.form.submit();"'; $jselect = ' onChange="this.form.submit();"';
} }
/* Setup all and none first */ /* Setup all and none first */
$cats_link = "\n" .'<select name="entry[cat_id]'.($multiple?'[]':'').'"' .$jselect . ($multiple ? 'multiple size="3"' : '') . ">\n"; $cats_link = "\n" .'<select name="fcat_id'.($multiple?'[]':'').'"' .$jselect . ($multiple ? 'multiple size="3"' : '') . ">\n";
if (!$notall) if (!$notall)
{ {
$cats_link .= '<option value=""'; $cats_link .= '<option value=""';
@ -552,7 +552,7 @@
function get_form() function get_form()
{ {
global $entry; global $entry,$fcat_id;
/* _debug_array($entry); */ /* _debug_array($entry); */
if (!$entry['bday_month'] && !$entry['bday_day'] && !$entry['bday_year']) if (!$entry['bday_month'] && !$entry['bday_day'] && !$entry['bday_year'])
@ -670,13 +670,13 @@
$fields['access'] = 'public'; $fields['access'] = 'public';
} }
if (is_array($entry['cat_id'])) if (is_array($fcat_id))
{ {
$fields['cat_id'] = count($entry['cat_id']) > 1 ? ','.implode(',',$entry['cat_id']).',' : $entry['cat_id'][0]; $fields['cat_id'] = count($fcat_id) > 1 ? ','.implode(',',$fcat_id).',' : $fcat_id[0];
} }
else else
{ {
$fields['cat_id'] = $entry['cat_id']; $fields['cat_id'] = $fcat_id;
} }
$fields['ab_id'] = $entry['ab_id']; $fields['ab_id'] = $entry['ab_id'];