Skip to content

Commit 2fd6e18

Browse files
committed
Merge pull request samcleaver#12 from YevKov/ob_start_bug
ob_start() call made in wrong place
2 parents a2a260b + 8ccfd3c commit 2fd6e18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

phpgsb.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
Copyright (c) 2010-2012, Sam Cleaver (Beaver6813, Beaver6813.com)
77
All rights reserved.
88
*/
9-
ob_start();
109
class phpGSB
1110
{
1211
var $apikey = "";
@@ -84,9 +83,10 @@ function outputmsg($msg)
8483
{
8584
if($this->verbose)
8685
{
86+
ob_start();
8787
echo $msg.'...<br/>';
8888
$this->ob .= ob_get_contents();
89-
ob_flush();
89+
ob_end_flush();
9090
}
9191
}
9292
/*Function to output errors, used instead of echo,
@@ -96,6 +96,7 @@ function fatalerror($msg)
9696
{
9797
if($this->verbose)
9898
{
99+
ob_start();
99100
print_r($msg);
100101
echo '...<br/>';
101102
$this->ob .= ob_get_contents();
@@ -1401,4 +1402,3 @@ function doLookup($url)
14011402

14021403
}
14031404
}
1404-
?>

0 commit comments

Comments
 (0)