Prevent display.php from producing page headers when included from doSelectRows(). DEV_TREE
authorjollytoad <jollytoad>
Wed, 13 Apr 2005 11:30:56 +0000 (11:30 +0000)
committerjollytoad <jollytoad>
Wed, 13 Apr 2005 11:30:56 +0000 (11:30 +0000)
tables.php

index 9fb4fdb18a2a705dbabadee326a3812c44aec8f9..1301030a857e8e2add15cfcc3134c9dbede3d4ed 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * List tables in a database
         *
-        * $Id: tables.php,v 1.69.2.3 2005/03/22 09:29:44 jollytoad Exp $
+        * $Id: tables.php,v 1.69.2.4 2005/04/13 11:30:56 jollytoad Exp $
         */
 
        // Include application functions
         * Ask for select parameters and perform select
         */
        function doSelectRows($confirm, $msg = '') {
-               global $data, $misc;
+               global $data, $misc, $_no_output;
                global $lang;
                global $PHP_SELF;
 
                        }
                        
                        if (sizeof($_POST['show']) == 0)
-                               doSelectRows(true, $lang['strselectneedscol']);                 
+                               doSelectRows(true, $lang['strselectneedscol']);
                        else {
                                // Generate query SQL
                                $query = $data->getSelectSQL($_REQUEST['table'], array_keys($_POST['show']),
                                $_REQUEST['return_url'] = "tables.php?action=confselectrows&{$misc->href}&table={$_REQUEST['table']}";
                                $_REQUEST['return_desc'] = $lang['strback'];
 
+                               $_no_output = true;
                                include('./display.php');
                                exit;
                        }