MantisBT: master e71dfde5

Author Committer Branch Timestamp Parent
dhx dhx master 2010-08-12 09:03 master 500f1d71
Affected Issues  0012249: g_error_send_page_header condition check always evaluates to true
Changeset

Fix 0012249: g_error_send_page_header condition check always true

Within the error_handler() function of error_api.php, this check was
being performed:

if( $g_error_send_page_header || $g_error_send_page_header == null )

Due to PHP's handling of boolean logic this check would always be
validated as true. To solve this problem we simplify the evaluation by
removing the possibility that the variable can be null (we set it to
true by default now).

mod - core/error_api.php Diff File