From 85176c05d844a9b3c693e3436d358cc1bf30b1eb Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Sun, 14 Jun 2009 12:38:06 -0400 Subject: [PATCH] metaform: fixed bug with listing but no display page (some links got an extra _edit in them) --- metaform.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/metaform.php b/metaform.php index ebd1f99..19e2168 100644 --- a/metaform.php +++ b/metaform.php @@ -268,9 +268,6 @@ function make_html($whole_file = true) { } if($GLOBALS['opt_listing'] == 'Yes') { - if($GLOBALS['opt_display'] != 'Yes') { - $tem->show('opt_display_a_else'); - } if(show_in_listing($type, $input, $format, $sql)) { if($format == 'bool' || $format == 'yesno') { $tem->set('listing_enc', 'yesno'); @@ -284,6 +281,10 @@ function make_html($whole_file = true) { $tem->set('listing_enc', 'html'); $tem->show('listing_value_enc'); } + + if($GLOBALS['opt_display'] != 'Yes') { + $tem->show('opt_display_a_else'); + } $tem->show('listing_head_col'); $tem->show('listing_row_col'); } -- 1.7.10.4