This commit is contained in:
Marc Delisle
2001-07-20 20:14:43 +00:00
parent 382b1f087d
commit d9901f2f91
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@
# needed because both header and footer functions must know # needed because both header and footer functions must know
# what each other is doing. # what each other is doing.
{ {
if (function_exists('ob_start')) if (@function_exists('ob_start'))
$mode = 1; $mode = 1;
else else
$mode = 0; $mode = 0;

View File

@@ -179,12 +179,12 @@ else
} }
if (isset($bzip) && $bzip == 'bzip') { if (isset($bzip) && $bzip == 'bzip') {
if (function_exists('bzcompress')) { if (@function_exists('bzcompress')) {
echo bzcompress($dump_buffer); echo bzcompress($dump_buffer);
} }
} }
else if (isset($gzip) && $gzip == 'gzip') { else if (isset($gzip) && $gzip == 'gzip') {
if ($gzip == 'gzip' && function_exists('gzencode')) { if ($gzip == 'gzip' && @function_exists('gzencode')) {
// without the optional parameter level because it bug // without the optional parameter level because it bug
echo gzencode($dump_buffer); echo gzencode($dump_buffer);
} }