logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

mantisbt/core error_api.php,1.36,1.37: msg#00067

Subject: mantisbt/core error_api.php,1.36,1.37
Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2777/core

Modified Files:
        error_api.php 
Log Message:
Fixed 4855: Account Update page shows header twice when there is an error

Index: error_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/error_api.php,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- error_api.php       24 Oct 2004 14:12:47 -0000      1.36
+++ error_api.php       30 Nov 2004 13:02:57 -0000      1.37
@@ -42,7 +42,7 @@
 
                # flush any language overrides to return to user's natural 
default
                lang_push( config_get ( 'default_language' ) );
-               
+
                $t_short_file   = basename( $p_file );
                $t_method_array = config_get( 'display_errors' );
                if ( isset( $t_method_array[$p_type] ) ) {
@@ -84,7 +84,7 @@
 
                if ( 'halt' == $t_method ) {
                        $t_old_contents = ob_get_contents();
-                       # ob_end_clean() still sems to call the output handler 
which
+                       # ob_end_clean() still seems to call the output handler 
which
                        #  outputs the headers indicating compression. If we had
                        #  PHP > 4.2.0 we could use ob_clean() instead but as 
it is
                        #  we need to disable compression.
@@ -119,7 +119,7 @@
                        }
                        PRINT '</table></div>';
 
-                       if ( $g_error_handled ) {
+                       if ( $g_error_handled && !is_blank( $t_old_contents ) ) 
{
                                PRINT '<p>Previous non-fatal errors occurred.  
Page contents follow.</p>';
 
                                PRINT '<div style="border: solid 1px 
black;padding: 4px">';



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/


<Prev in Thread] Current Thread [Next in Thread>